HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

  • 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, …