Hoogle Search
Within LTS Haskell 24.36 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
class PrimMonad m =>
PrimBase (m :: Type -> Type)primitive Control.Monad.Primitive Class of primitive monads for state-transformer actions. Unlike PrimMonad, this typeclass requires that the Monad be fully expressed as a state transformer, therefore disallowing other monad transformers on top of the base IO or ST.
class Monad m =>
PrimMonad (m :: Type -> Type)primitive Control.Monad.Primitive Class of monads which can perform primitive state-transformer actions.
-
Reexports all primitive operations.
module Data.Primitive.
PrimArray Arrays of unboxed primitive types. The functions provided by this module match the behavior of those provided by Data.Primitive.ByteArray, and the underlying types and primops that back them are the same. However, the type constructors PrimArray and MutablePrimArray take one additional argument compared to their respective counterparts ByteArray and MutableByteArray. This argument is used to designate the type of element in the array. Consequently, all functions in this module accept length and indices in terms of elements, not bytes.
-
primitive Data.Primitive.PrimArray Arrays of unboxed elements. This accepts types like Double, Char, Int and Word, as well as their fixed-length variants (Word8, Word16, etc.). Since the elements are unboxed, a PrimArray is strict in its elements. This differs from the behavior of Array, which is lazy in its elements.
PrimArray :: ByteArray# -> PrimArray aprimitive Data.Primitive.PrimArray No documentation available.
-
Variant of MutVar that has one less indirection for primitive types. The difference is illustrated by comparing MutVar Int and PrimVar Int:
- MutVar Int: MutVar# --> I#
- PrimVar Int: MutableByteArray#
-
primitive Data.Primitive.PrimVar A PrimVar behaves like a single-element mutable primitive array.
PrimVar :: MutablePrimArray s a -> PrimVar s aprimitive Data.Primitive.PrimVar No documentation available.
-
Primitive operations on machine addresses.