ghc-primitive - Primitive memory-related operations

Property Value
Distribution openSUSE Leap 15.1
Repository openSUSE Oss all
Package filename ghc-primitive-
Package name ghc-primitive
Package version
Package release lp151.1.2
Package architecture x86_64
Package type rpm
Category Development/Libraries/Haskell
License BSD-3-Clause
Maintainer -
Download size 130.97 KB
Installed size 847.31 KB
This package provides various primitive memory-related operations.


Package Version Architecture Repository
ghc-primitive - - -


Name Value - - - - - - - -


Name Value
ghc-primitive =
ghc-primitive(x86-64) = -


Type URL
Binary Package ghc-primitive-
Source Package ghc-primitive-

Install Howto

Install ghc-primitive rpm package:

# zypper install ghc-primitive




2018-10-20 - Peter Simons <>
- Use https URL to refer to
2018-07-18 -
- Cosmetic: replace tabs with blanks, strip trailing white space,
and update copyright headers with spec-cleaner.
2018-07-13 -
- Update primitive to version
[#]# 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
* 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 array.
* 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
2018-05-14 -
- Update primitive to 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.
2017-08-03 -
- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf.
2017-07-27 -
- Update to version revision 1.
2016-07-10 -
- Update to version revision 1 with cabal2obs.
2015-09-27 -
- update to
* 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

See Also

Package Description
ghc-primitive-devel- Haskell primitive library development files
ghc-process- Haskell process library
ghc-process-devel- Haskell process library development files
ghc-profunctors-5.3-lp151.1.2.x86_64.rpm Profunctors
ghc-profunctors-devel-5.3-lp151.1.2.x86_64.rpm Haskell profunctors library development files
ghc-project-template- Specify Haskell project templates and generate files
ghc-project-template-devel- Haskell project-template library development files
ghc-quickcheck-io-0.2.0-lp151.3.2.x86_64.rpm Use HUnit assertions as QuickCheck properties
ghc-quickcheck-io-devel-0.2.0-lp151.3.2.x86_64.rpm Haskell quickcheck-io library development files
ghc-random-1.1-lp151.3.2.x86_64.rpm Random number library
ghc-random-devel-1.1-lp151.3.2.x86_64.rpm Haskell random library development files
ghc-reflection-2.1.4-lp151.1.2.x86_64.rpm Reifies arbitrary terms into types that can be reflected back into terms
ghc-reflection-devel-2.1.4-lp151.1.2.x86_64.rpm Haskell reflection library development files
ghc-regex-applicative-0.3.3-lp151.3.2.x86_64.rpm Regex-based parsing with applicative interface
ghc-regex-applicative-devel-0.3.3-lp151.3.2.x86_64.rpm Haskell regex-applicative library development files