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.

  1. 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.

  2. class Monad m => PrimMonad (m :: Type -> Type)

    primitive Control.Monad.Primitive

    Class of monads which can perform primitive state-transformer actions.

  3. module Data.Primitive

    Reexports all primitive operations.

  4. 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.

  5. data PrimArray a

    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.

  6. PrimArray :: ByteArray# -> PrimArray a

    primitive Data.Primitive.PrimArray

    No documentation available.

  7. module Data.Primitive.PrimVar

    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#
    This module is adapted from a module in Edward Kmett's prim-ref library.

  8. newtype PrimVar s a

    primitive Data.Primitive.PrimVar

    A PrimVar behaves like a single-element mutable primitive array.

  9. PrimVar :: MutablePrimArray s a -> PrimVar s a

    primitive Data.Primitive.PrimVar

    No documentation available.

  10. module Data.Primitive.Ptr

    Primitive operations on machine addresses.

Page 40 of many | Previous | Next