HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulebasement-0.0.16Haskell2010

Basement.PrimType

  • 2 classes
  • 18 values
  • Packagebasement-0.0.16
  • Exports20
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourcePrimType.hs
classclass Eq ty => PrimType ty where
#

Represent the accessor for types that can be stored in the UArray and MUArray.

Types need to be a instance of storable and have fixed sized.

Associated types

  • type family PrimSize ty :: Nat

    type level size of the given ty

Methods

Instances20PrimType, …
classclass PrimMemoryComparable ty
#

A constraint class for serializable type that have an unique memory compare representation

e.g. Float and Double have -0.0 and 0.0 which are Eq individual, yet have a different memory representation which doesn't allow for memcmp operation

Instances17PrimMemoryComparable, …