./devel/hs-primitive, Primitive memory-related operations

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.9.0.0nb1, Package name: hs-primitive-0.9.0.0nb1, Maintainer: pho

This package provides various primitive memory-related operations.


Required to run:
[lang/ghc88]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 59.16 KB

Version history: (Expand)


CVS history: (Expand)


   2023-11-02 07:37:49 by Masatake Daimon | Files touched by this commit (1141)
Log message:
Revbump all Haskell after updating lang/ghc96
   2023-10-27 08:58:36 by Masatake Daimon | Files touched by this commit (4)
Log message:
devel/hs-primitive: Update to 0.9.0.0

Changes in version 0.9.0.0
* Add withByteArrayContents, withMutableByteArrayContents,
  withPrimArrayContents, withMutablePrimArrayContents.
* Fix signature of keepAlive.
* Remove re-export of fromList and fromListN from Data.Primitive.Array.
* Use mutableByteArrayContents# in GHC 9.2+
* Add Prim instance for Complex.
* Add getSizeofSmallMutableArray that wraps getSizeofSmallMutableArray#
  from GHC.Exts.
* Add default definitions for the setByteArray# and setOffAddr# methods, so
  they don't need to be defined explicitly anymore.
* Add standalone sizeOfType/alignmentOfType (recommended over
  sizeOf/alignment) and Prim class methods sizeOfType#/alignmentOfType#
  (recommended over sizeOf#/alignment#)
* Change Show instances of PrimArray, Array, and SmallArray. These
  previously used the fromListN n [...] form, but they now used the more
  terse [...] form.
* Correct the Read instances of Array and SmallArray. These instances are
  supposed to be able to handle all three of these forms: fromList [...],
  fromListN n [...], and [...]. They had been rejected the last form, but
  this mistake was discovered by the test suite when the Show instances
  were changed.

Changes in version 0.8.0.0
* Add resizeSmallMutableArray that wraps resizeSmallMutableArray# from
  GHC.Exts.
* New module Data.Primitive.PrimVar. This is essentially PrimArray with
  element length 1. For types with Prim instances, this is a drop-in
  replacement for MutVar with fewer indirections.
* PrimArray's type argument has been given a nominal role instead of a
  phantom role. This is a breaking change.
* Add readCharArray, writeCharArray, indexCharArray for operating on 8-bit
  characters in a byte array.
* When building with base-4.17 and newer, re-export the ByteArray and
  MutableByteArray types from base instead of defining them in this
  library. This does not change the user-facing interface of
  Data.Primitive.ByteArray.
* Add keepAlive that wraps keepAlive# for GHC 9.2 and newer. It falls back
  to using touch for older GHCs.
   2023-10-09 06:55:01 by Masatake Daimon | Files touched by this commit (988)
Log message:
Bump Haskell packages after updating lang/ghc94
   2022-08-18 20:56:35 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
hs-primitive: update to 0.7.4.0.

## Changes in version 0.7.4.0

  * Add Lift instances (#332)

  * Expose `copyPtrToMutablePrimArray`

  * Improve definitions for stimes (#326)

  * Support GHC 9.4. Note: GHC 9.4 is not released at the time of
    primitive-0.7.4.0's release, so this support might be reverted by
    a hackage metadata revision if things change.

  * Drop support for GHC 7.10
   2022-02-26 04:58:36 by Masatake Daimon | Files touched by this commit (872)
Log message:
Bump all Haskell packages after enabling "split sections" in mk/haskell.mk
   2022-02-12 09:51:00 by Masatake Daimon | Files touched by this commit (575)
Log message:
revbump after changing the default Haskell compiler
   2022-02-11 13:58:29 by Masatake Daimon | Files touched by this commit (5)
Log message:
Update to primitive-0.7.3.0

Changes in version 0.7.3.0
* Correct implementations of *> for Array and SmallArray.
* Drop support for GHC < 7.10
* Export runByteArray and runPrimArray.
* Export createArray and createSmallArray.
* Export emptyByteArray, emptyPrimArray, emptyArray and emptySmallArray.

Changes in version 0.7.2.0
* Add thawByteArray and thawPrimArray.
* Changed the Show instance of ByteArray, so that all 8-bit words are
  rendered as two digits. For example, display 0x0D instead of 0xD.
   2022-01-18 03:48:33 by Masatake Daimon | Files touched by this commit (541)
Log message:
Bump packages that depends on GHC