HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulefoundation-0.0.30Haskell2010

Foundation.Class.Storable

  • 1 type
  • 2 classes
  • 8 values
  • Packagefoundation-0.0.30
  • Exports11
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceStorable.hs
classclass Storable a where
#

Storable type of self determined size.

Methods

Instances29Storable, …
  • Storable Word128Defined in foundation-0.0.30 · Foundation.Class.Storable
  • Storable Word256Defined in foundation-0.0.30 · Foundation.Class.Storable
  • Storable IPv4Defined in foundation-0.0.30 · Foundation.Network.IPv4
  • Storable IPv6Defined in foundation-0.0.30 · Foundation.Network.IPv6
  • Storable UUIDDefined in foundation-0.0.30 · Foundation.UUID
  • Storable CCharDefined in foundation-0.0.30 · Foundation.Class.Storable
  • Storable CUCharDefined in foundation-0.0.30 · Foundation.Class.Storable
  • Storable Int16Defined in foundation-0.0.30 · Foundation.Class.Storable
  • Storable Int32Defined in foundation-0.0.30 · Foundation.Class.Storable
  • Storable Int64Defined in foundation-0.0.30 · Foundation.Class.Storable
  • Storable Int8Defined in foundation-0.0.30 · Foundation.Class.Storable
  • Storable Word16Defined in foundation-0.0.30 · Foundation.Class.Storable
  • Storable Word32Defined in foundation-0.0.30 · Foundation.Class.Storable
  • Storable Word64Defined in foundation-0.0.30 · Foundation.Class.Storable
  • Storable Word8Defined in foundation-0.0.30 · Foundation.Class.Storable
  • Storable CharDefined in foundation-0.0.30 · Foundation.Class.Storable
  • Storable DoubleDefined in foundation-0.0.30 · Foundation.Class.Storable
  • Storable FloatDefined in foundation-0.0.30 · Foundation.Class.Storable
  • Storable (BE Word128)Defined in foundation-0.0.30 · Foundation.Class.Storable
  • Storable (BE Word256)Defined in foundation-0.0.30 · Foundation.Class.Storable
  • Storable (BE Word16)Defined in foundation-0.0.30 · Foundation.Class.Storable
  • Storable (BE Word32)Defined in foundation-0.0.30 · Foundation.Class.Storable
  • Storable (BE Word64)Defined in foundation-0.0.30 · Foundation.Class.Storable
  • Storable (LE Word128)Defined in foundation-0.0.30 · Foundation.Class.Storable
  • Storable (LE Word256)Defined in foundation-0.0.30 · Foundation.Class.Storable
  • Storable (LE Word16)Defined in foundation-0.0.30 · Foundation.Class.Storable
  • Storable (LE Word32)Defined in foundation-0.0.30 · Foundation.Class.Storable
  • Storable (LE Word64)Defined in foundation-0.0.30 · Foundation.Class.Storable
  • Storable (Ptr a)Defined in foundation-0.0.30 · Foundation.Class.Storable
classclass Storable a => StorableFixed a where
#

Extending the Storable type class to the types that can be sequenced in a structure.

Methods

Instances29StorableFixed, …

Ptr

3 declarations
datadata Ptr a
#

A value of type Ptr a represents a pointer to an object, or an array of objects, which may be marshalled to or from Haskell values of type a.

The type a will often be an instance of class Storable which provides the marshalling operations. However this is not essential, and you can provide your own operations to access the pointer. For example you might write small foreign functions to get or set the fields of a C struct.

Instances21Generic1, Data, Show, Foldable, Traversable, NormalForm, …

offset based helper

2 declarations

Collection

4 declarations