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

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

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

This package provides various primitive memory-related operations.

Required to run:

Required to build:

Master sites:

SHA1: 46c84d2e4a732093d9205c00f956be09bebacc17
RMD160: a27d9abb6af8f7a2c446c0d65e9629d6a8199ad3
Filesize: 64.467 KB

Version history: (Expand)

CVS history: (Expand)

   2020-05-11 19:52:21 by Roland Illig | Files touched by this commit (190) | Package updated
Log message:
hs-*: add PLIST files

These PLIST files have been autogenerated by mk/haskell.mk using
HS_UPDATE_PLIST=yes during a bulk build.  They will help to track changes
to the packages.  The Haskell packages didn't have PLIST files because
their paths contained package hashes.  These hashes are now determined by
mk/haskell.mk, which makes it easy to generate easy to read PLIST files.
   2020-01-11 09:00:14 by Masatake Daimon | Files touched by this commit (3)
Log message:
Remove dependency on devel/hs-mtl

mtl is now a part of GHC.
   2019-12-31 19:51:27 by Masatake Daimon | Files touched by this commit (2)
Log message:
Remove dependency on devel/hs-transformers
   2019-12-31 18:25:06 by Masatake Daimon | Files touched by this commit (4) | Package updated
Log message:
Update to primitive-

Changes in version
* Introduce Data.Primitive.PrimArray, which offers types and function
  for dealing with a ByteArray tagged with a phantom type variable for
  tracking the element type.
* Implement isByteArrayPinned and isMutableByteArrayPinned.
* Add Eq1, Ord1, Show1, and Read1 instances for Array and SmallArray.
* Improve the test suite. This includes having property tests for
  typeclasses from base such as Eq, Ord, Functor, Applicative, Monad,
  IsList, Monoid, Foldable, and Traversable.
* Fix the broken IsList instance for ByteArray. The old definition
  would allocate a byte array of the correct size and then leave the
  memory unitialized instead of writing the list elements to it.
* Fix the broken Functor instance for Array. The old definition would
  allocate an array of the correct size with thunks for erroring
  installed at every index. It failed to replace these thunks with the
  result of the function applied to the elements of the argument
* Fix the broken Applicative instances of Array and SmallArray. The
  old implementation of <*> for Array failed to initialize some
  elements but correctly initialized others in the resulting Array. It
  is unclear what the old behavior of <*> was for SmallArray, but it
  was incorrect.
* Fix the broken Monad instances for Array and SmallArray.
* Fix the implementation of foldl1 in the Foldable instances for Array
  and SmallArray. In both cases, the old implementation simply
  returned the first element of the array and made no use of the other
  elements in the array.
* Fix the implementation of mconcat in the Monoid instance for
* Implement Data.Primitive.Ptr, implementations of Ptr functions that
  require a Prim constraint instead of a Storable constraint.
* Add PrimUnlifted instances for TVar and MVar.
* Use compareByteArrays# for the Eq and Ord instances of ByteArray
  when building with GHC 8.4 and newer.
* Add Prim instances for lots of types in Foreign.C.Types and
* Reexport Data.Primitive.SmallArray and Data.Primitive.UnliftedArray
  from Data.Primitive.
* Add fold functions and map function to
  Data.Primitive.UnliftedArray. Add typeclass instances for IsList,
  Ord, and Show.
* Add defaultSetByteArray# and defaultSetOffAddr# to
* Add Data.Primitive.MVar, a replacement for Control.Concurrent.MVar
  that can run in any PrimMonad instead of just IO. It is not a full
  replacement. Notably, it's missing masking functions and support for
  adding finalizers.

Changes in version
* Add PrimMonad instances for ContT, AccumT, and SelectT from
* Add Eq, Ord, Show, and IsList instances for ByteArray
* Add Semigroup instances for Array and SmallArray. This allows
  primitive to build on GHC 8.4 and later.

Changes in version
* Drop support for GHCs before 7.4
* SmallArray support
* ArrayArray# based support for more efficient arrays of unlifted
  pointer types
* Make Array and the like instances of various classes for convenient
* Add Prim instances for Ptr and FunPtr
* Add ioToPrim, stToPrim and unsafe counterparts for situations that
  would otherwise require type ascriptions on primToPrim
* Add evalPrim
* Add PrimBase instance for IdentityT
   2015-12-13 15:06:53 by Ryosuke Moro | Files touched by this commit (3) | Package updated
Log message:
Update to

## Changes in version

 * Use more appropriate types in internal memset functions, which prevents
   overflows/segfaults on 64-bit systems.

 * Fixed a warning on GHC 7.10

 * Worked around a -dcore-lint bug in GHC 7.6/7.7

## Changes in version 0.6

 * Split PrimMonad into two classes to allow automatic lifting of primitive
   operations into monad transformers. The `internal` operation has moved to the
   `PrimBase` class.

 * Fixed the test suite on older GHCs
   2015-11-03 04:29:40 by Alistair G. Crooks | Files touched by this commit (1995)
Log message:
Add SHA512 digests for distfiles for devel category

Issues found with existing distfiles:
No changes made to these distinfo files.

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
   2015-02-14 05:10:27 by Masatake Daimon | Files touched by this commit (3) | Package updated
Log message:
Update to


 * Changed primitive_ to work around an oddity with GHC's code
   generation on certain versions that led to side effects not
   happening when used in conjunction with certain very unsafe IO

 * Allow primitive to build on GHC 7.9
CVS: ----------------------------------------------------------------------
CVS: CVSROOT  cvs.NetBSD.org:/cvsroot
CVS: please use "PR category/123" to have the commitmsg appended to PR 123
   2014-08-29 16:08:42 by Ryosuke Moro | Files touched by this commit (61)
Log message:
make it clear what package depend on

discussed with wiz@.