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.Compat.Primitive

  • 8 types
  • 43 values
  • Packagebasement-0.0.16
  • Exports51
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourcePrimitive.hs
valuecompatMkWeak#
  1. :: o
  2. -> b
  3. -> IO ()
  4. -> State# RealWorld
  5. -> (# State# RealWorld, Weak# b #)
#

A mkWeak# version that keep working on 8.0

signature change in ghc-prim: * 0.4: mkWeak# :: o -> b -> c -> State# RealWorld -> ( RealWorld, Weak# b#) * 0.5 :mkWeak# :: o -> b -> (State# RealWorld -> ( RealWorld, c#)) -> State# RealWorld -> ( RealWorld, Weak# b#)

valueunsafeCoerce# :: a -> b
#

Highly, terribly dangerous coercion from one representation type to another. Misuse of this function can invite the garbage collector to trounce upon your data and then laugh in your face. You don't want this function. Really.

datadata Word
#

A Word is an unsigned integral type, with the same size as Int.

Constructors

Instances62Bounded, Enum, Data, Num, Read, Real, …