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

Modulebasement-0.0.16Haskell2010

Basement.Types.Ptr

  • 2 types
  • 7 values
  • Packagebasement-0.0.16
  • Exports9
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourcePtr.hs
datadata Addr
#

Constructors

Instances2Eq, Ord
  • Eq AddrDefined in basement-0.0.16 · Basement.Types.Ptr
  • Ord AddrDefined in basement-0.0.16 · Basement.Types.Ptr
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.

Constructors

Instances19Generic1, Data, Show, Foldable, Traversable, Storable, …