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

Modulererebase-1.21.2Haskell2010

Foreign.C

  • 34 types
  • 151 values
  • Packagererebase-1.21.2
  • Exports185
  • LanguageHaskell2010
  • LicenceMIT
  • SourceTypes.hs
newtypenewtype CSize
#

Haskell type representing the C size_t type. (The concrete types of Foreign.C.Types#platform are platform-specific.)

Constructors

Instances19Bounded, Enum, Eq, Integral, Num, Ord, …
  • Bounded CSizeDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Enum CSizeDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Eq CSizeDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Integral CSizeDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Num CSizeDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ord CSizeDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Read CSizeDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Real CSizeDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Show CSizeDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ix CSizeDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Bits CSizeDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • FiniteBits CSizeDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Storable CSizeDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • NFData CSizeDefined in deepseq-1.5.0.0 · Control.DeepSeq
  • Random CSizeDefined in random-1.2.1.3 · System.Random
  • Uniform CSizeDefined in random-1.2.1.3 · System.Random.Internal
  • UniformRange CSizeDefined in random-1.2.1.3 · System.Random.Internal
  • Prim CSizeDefined in primitive-0.9.1.0 · Data.Primitive.Types
  • Default CSizeDefined in data-default-0.8.0.1 · Data.Default.Internal
newtypenewtype CInt
#

Haskell type representing the C int type. (The concrete types of Foreign.C.Types#platform are platform-specific.)

Constructors

Instances19Bounded, Enum, Eq, Integral, Num, Ord, …
  • Bounded CIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Enum CIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Eq CIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Integral CIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Num CIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ord CIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Read CIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Real CIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Show CIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ix CIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Bits CIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • FiniteBits CIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Storable CIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • NFData CIntDefined in deepseq-1.5.0.0 · Control.DeepSeq
  • Random CIntDefined in random-1.2.1.3 · System.Random
  • Uniform CIntDefined in random-1.2.1.3 · System.Random.Internal
  • UniformRange CIntDefined in random-1.2.1.3 · System.Random.Internal
  • Prim CIntDefined in primitive-0.9.1.0 · Data.Primitive.Types
  • Default CIntDefined in data-default-0.8.0.1 · Data.Default.Internal
newtypenewtype CPtrdiff
#

Haskell type representing the C ptrdiff_t type. (The concrete types of Foreign.C.Types#platform are platform-specific.)

Constructors

Instances19Bounded, Enum, Eq, Integral, Num, Ord, …
  • Bounded CPtrdiffDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Enum CPtrdiffDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Eq CPtrdiffDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Integral CPtrdiffDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Num CPtrdiffDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ord CPtrdiffDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Read CPtrdiffDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Real CPtrdiffDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Show CPtrdiffDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ix CPtrdiffDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Bits CPtrdiffDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • FiniteBits CPtrdiffDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Storable CPtrdiffDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • NFData CPtrdiffDefined in deepseq-1.5.0.0 · Control.DeepSeq
  • Random CPtrdiffDefined in random-1.2.1.3 · System.Random
  • Uniform CPtrdiffDefined in random-1.2.1.3 · System.Random.Internal
  • UniformRange CPtrdiffDefined in random-1.2.1.3 · System.Random.Internal
  • Prim CPtrdiffDefined in primitive-0.9.1.0 · Data.Primitive.Types
  • Default CPtrdiffDefined in data-default-0.8.0.1 · Data.Default.Internal
newtypenewtype CLLong
#

Haskell type representing the C long long type. (The concrete types of Foreign.C.Types#platform are platform-specific.)

Constructors

Instances19Bounded, Enum, Eq, Integral, Num, Ord, …
  • Bounded CLLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Enum CLLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Eq CLLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Integral CLLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Num CLLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ord CLLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Read CLLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Real CLLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Show CLLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ix CLLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Bits CLLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • FiniteBits CLLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Storable CLLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • NFData CLLongDefined in deepseq-1.5.0.0 · Control.DeepSeq
  • Random CLLongDefined in random-1.2.1.3 · System.Random
  • Uniform CLLongDefined in random-1.2.1.3 · System.Random.Internal
  • UniformRange CLLongDefined in random-1.2.1.3 · System.Random.Internal
  • Prim CLLongDefined in primitive-0.9.1.0 · Data.Primitive.Types
  • Default CLLongDefined in data-default-0.8.0.1 · Data.Default.Internal
newtypenewtype CULLong
#

Haskell type representing the C unsigned long long type. (The concrete types of Foreign.C.Types#platform are platform-specific.)

Constructors

Instances19Bounded, Enum, Eq, Integral, Num, Ord, …
  • Bounded CULLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Enum CULLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Eq CULLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Integral CULLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Num CULLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ord CULLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Read CULLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Real CULLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Show CULLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ix CULLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Bits CULLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • FiniteBits CULLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Storable CULLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • NFData CULLongDefined in deepseq-1.5.0.0 · Control.DeepSeq
  • Random CULLongDefined in random-1.2.1.3 · System.Random
  • Uniform CULLongDefined in random-1.2.1.3 · System.Random.Internal
  • UniformRange CULLongDefined in random-1.2.1.3 · System.Random.Internal
  • Prim CULLongDefined in primitive-0.9.1.0 · Data.Primitive.Types
  • Default CULLongDefined in data-default-0.8.0.1 · Data.Default.Internal
typetype CString = Ptr CChar
#

A C string is a reference to an array of C characters terminated by NUL.

newtypenewtype CChar
#

Haskell type representing the C char type. (The concrete types of Foreign.C.Types#platform are platform-specific.)

Constructors

Instances18Bounded, Enum, Eq, Integral, Num, Ord, …
  • Bounded CCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Enum CCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Eq CCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Integral CCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Num CCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ord CCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Read CCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Real CCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Show CCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ix CCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Bits CCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • FiniteBits CCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Storable CCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • NFData CCharDefined in deepseq-1.5.0.0 · Control.DeepSeq
  • Random CCharDefined in random-1.2.1.3 · System.Random
  • Uniform CCharDefined in random-1.2.1.3 · System.Random.Internal
  • UniformRange CCharDefined in random-1.2.1.3 · System.Random.Internal
  • Prim CCharDefined in primitive-0.9.1.0 · Data.Primitive.Types
newtypenewtype CUInt
#

Haskell type representing the C unsigned int type. (The concrete types of Foreign.C.Types#platform are platform-specific.)

Constructors

Instances19Bounded, Enum, Eq, Integral, Num, Ord, …
  • Bounded CUIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Enum CUIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Eq CUIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Integral CUIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Num CUIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ord CUIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Read CUIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Real CUIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Show CUIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ix CUIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Bits CUIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • FiniteBits CUIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Storable CUIntDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • NFData CUIntDefined in deepseq-1.5.0.0 · Control.DeepSeq
  • Random CUIntDefined in random-1.2.1.3 · System.Random
  • Uniform CUIntDefined in random-1.2.1.3 · System.Random.Internal
  • UniformRange CUIntDefined in random-1.2.1.3 · System.Random.Internal
  • Prim CUIntDefined in primitive-0.9.1.0 · Data.Primitive.Types
  • Default CUIntDefined in data-default-0.8.0.1 · Data.Default.Internal
typetype CStringLen = (Ptr CChar, Int)
#

A string with explicit length information in bytes instead of a terminating NUL (allowing NUL characters in the middle of the string).

newtypenewtype CBool
#

Haskell type representing the C bool type. (The concrete types of Foreign.C.Types#platform are platform-specific.)

Constructors

Instances19Bounded, Enum, Eq, Integral, Num, Ord, …
  • Bounded CBoolDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Enum CBoolDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Eq CBoolDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Integral CBoolDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Num CBoolDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ord CBoolDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Read CBoolDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Real CBoolDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Show CBoolDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ix CBoolDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Bits CBoolDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • FiniteBits CBoolDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Storable CBoolDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • NFData CBoolDefined in deepseq-1.5.0.0 · Control.DeepSeq
  • Random CBoolDefined in random-1.2.1.3 · System.Random
  • Uniform CBoolDefined in random-1.2.1.3 · System.Random.Internal
  • UniformRange CBoolDefined in random-1.2.1.3 · System.Random.Internal
  • Prim CBoolDefined in primitive-0.9.1.0 · Data.Primitive.Types
  • Default CBoolDefined in data-default-0.8.0.1 · Data.Default.Internal
newtypenewtype CClock
#

Haskell type representing the C clock_t type. (The concrete types of Foreign.C.Types#platform are platform-specific.)

Constructors

Instances11Enum, Eq, Num, Ord, Read, Real, …
  • Enum CClockDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Eq CClockDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Num CClockDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ord CClockDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Read CClockDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Real CClockDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Show CClockDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Storable CClockDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • NFData CClockDefined in deepseq-1.5.0.0 · Control.DeepSeq
  • Prim CClockDefined in primitive-0.9.1.0 · Data.Primitive.Types
  • Default CClockDefined in data-default-0.8.0.1 · Data.Default.Internal
newtypenewtype CDouble
#

Haskell type representing the C double type. (The concrete types of Foreign.C.Types#platform are platform-specific.)

Constructors

Instances17Enum, Eq, Floating, Fractional, Num, Ord, …
  • Enum CDoubleDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Eq CDoubleDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Floating CDoubleDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Fractional CDoubleDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Num CDoubleDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ord CDoubleDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Read CDoubleDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Real CDoubleDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • RealFloat CDoubleDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • RealFrac CDoubleDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Show CDoubleDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Storable CDoubleDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • NFData CDoubleDefined in deepseq-1.5.0.0 · Control.DeepSeq
  • Random CDoubleDefined in random-1.2.1.3 · System.Random

    Note - random produces values in the closed range [0,1].

  • UniformRange CDoubleDefined in random-1.2.1.3 · System.Random.Internal
  • Prim CDoubleDefined in primitive-0.9.1.0 · Data.Primitive.Types
  • Default CDoubleDefined in data-default-0.8.0.1 · Data.Default.Internal
datadata CFile
#

Haskell type representing the C FILE type. (The concrete types of Foreign.C.Types#platform are platform-specific.)

Instances1NFData
  • NFData CFileDefined in deepseq-1.5.0.0 · Control.DeepSeq
newtypenewtype CFloat
#

Haskell type representing the C float type. (The concrete types of Foreign.C.Types#platform are platform-specific.)

Constructors

Instances17Enum, Eq, Floating, Fractional, Num, Ord, …
  • Enum CFloatDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Eq CFloatDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Floating CFloatDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Fractional CFloatDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Num CFloatDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ord CFloatDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Read CFloatDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Real CFloatDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • RealFloat CFloatDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • RealFrac CFloatDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Show CFloatDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Storable CFloatDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • NFData CFloatDefined in deepseq-1.5.0.0 · Control.DeepSeq
  • Random CFloatDefined in random-1.2.1.3 · System.Random

    Note - random produces values in the closed range [0,1].

  • UniformRange CFloatDefined in random-1.2.1.3 · System.Random.Internal
  • Prim CFloatDefined in primitive-0.9.1.0 · Data.Primitive.Types
  • Default CFloatDefined in data-default-0.8.0.1 · Data.Default.Internal
datadata CFpos
#

Haskell type representing the C fpos_t type. (The concrete types of Foreign.C.Types#platform are platform-specific.)

Instances1NFData
  • NFData CFposDefined in deepseq-1.5.0.0 · Control.DeepSeq
newtypenewtype CIntMax
#

Constructors

Instances19Bounded, Enum, Eq, Integral, Num, Ord, …
  • Bounded CIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Enum CIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Eq CIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Integral CIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Num CIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ord CIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Read CIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Real CIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Show CIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ix CIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Bits CIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • FiniteBits CIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Storable CIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • NFData CIntMaxDefined in deepseq-1.5.0.0 · Control.DeepSeq
  • Random CIntMaxDefined in random-1.2.1.3 · System.Random
  • Uniform CIntMaxDefined in random-1.2.1.3 · System.Random.Internal
  • UniformRange CIntMaxDefined in random-1.2.1.3 · System.Random.Internal
  • Prim CIntMaxDefined in primitive-0.9.1.0 · Data.Primitive.Types
  • Default CIntMaxDefined in data-default-0.8.0.1 · Data.Default.Internal
newtypenewtype CIntPtr
#

Constructors

Instances19Bounded, Enum, Eq, Integral, Num, Ord, …
  • Bounded CIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Enum CIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Eq CIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Integral CIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Num CIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ord CIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Read CIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Real CIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Show CIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ix CIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Bits CIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • FiniteBits CIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Storable CIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • NFData CIntPtrDefined in deepseq-1.5.0.0 · Control.DeepSeq
  • Random CIntPtrDefined in random-1.2.1.3 · System.Random
  • Uniform CIntPtrDefined in random-1.2.1.3 · System.Random.Internal
  • UniformRange CIntPtrDefined in random-1.2.1.3 · System.Random.Internal
  • Prim CIntPtrDefined in primitive-0.9.1.0 · Data.Primitive.Types
  • Default CIntPtrDefined in data-default-0.8.0.1 · Data.Default.Internal
datadata CJmpBuf
#

Haskell type representing the C jmp_buf type. (The concrete types of Foreign.C.Types#platform are platform-specific.)

Instances1NFData
newtypenewtype CLong
#

Haskell type representing the C long type. (The concrete types of Foreign.C.Types#platform are platform-specific.)

Constructors

Instances19Bounded, Enum, Eq, Integral, Num, Ord, …
  • Bounded CLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Enum CLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Eq CLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Integral CLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Num CLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ord CLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Read CLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Real CLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Show CLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ix CLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Bits CLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • FiniteBits CLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Storable CLongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • NFData CLongDefined in deepseq-1.5.0.0 · Control.DeepSeq
  • Random CLongDefined in random-1.2.1.3 · System.Random
  • Uniform CLongDefined in random-1.2.1.3 · System.Random.Internal
  • UniformRange CLongDefined in random-1.2.1.3 · System.Random.Internal
  • Prim CLongDefined in primitive-0.9.1.0 · Data.Primitive.Types
  • Default CLongDefined in data-default-0.8.0.1 · Data.Default.Internal
newtypenewtype CSChar
#

Haskell type representing the C signed char type. (The concrete types of Foreign.C.Types#platform are platform-specific.)

Constructors

Instances18Bounded, Enum, Eq, Integral, Num, Ord, …
  • Bounded CSCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Enum CSCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Eq CSCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Integral CSCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Num CSCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ord CSCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Read CSCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Real CSCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Show CSCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ix CSCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Bits CSCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • FiniteBits CSCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Storable CSCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • NFData CSCharDefined in deepseq-1.5.0.0 · Control.DeepSeq
  • Random CSCharDefined in random-1.2.1.3 · System.Random
  • Uniform CSCharDefined in random-1.2.1.3 · System.Random.Internal
  • UniformRange CSCharDefined in random-1.2.1.3 · System.Random.Internal
  • Prim CSCharDefined in primitive-0.9.1.0 · Data.Primitive.Types
newtypenewtype CSUSeconds
#

Haskell type representing the C suseconds_t type. (The concrete types of Foreign.C.Types#platform are platform-specific.)

Constructors

Instances11Enum, Eq, Num, Ord, Read, Real, …
  • Enum CSUSecondsDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Eq CSUSecondsDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Num CSUSecondsDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ord CSUSecondsDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Read CSUSecondsDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Real CSUSecondsDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Show CSUSecondsDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Storable CSUSecondsDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • NFData CSUSecondsDefined in deepseq-1.5.0.0 · Control.DeepSeq
  • Prim CSUSecondsDefined in primitive-0.9.1.0 · Data.Primitive.Types
  • Default CSUSecondsDefined in data-default-0.8.0.1 · Data.Default.Internal
newtypenewtype CShort
#

Haskell type representing the C short type. (The concrete types of Foreign.C.Types#platform are platform-specific.)

Constructors

Instances19Bounded, Enum, Eq, Integral, Num, Ord, …
  • Bounded CShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Enum CShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Eq CShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Integral CShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Num CShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ord CShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Read CShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Real CShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Show CShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ix CShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Bits CShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • FiniteBits CShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Storable CShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • NFData CShortDefined in deepseq-1.5.0.0 · Control.DeepSeq
  • Random CShortDefined in random-1.2.1.3 · System.Random
  • Uniform CShortDefined in random-1.2.1.3 · System.Random.Internal
  • UniformRange CShortDefined in random-1.2.1.3 · System.Random.Internal
  • Prim CShortDefined in primitive-0.9.1.0 · Data.Primitive.Types
  • Default CShortDefined in data-default-0.8.0.1 · Data.Default.Internal
newtypenewtype CSigAtomic
#

Haskell type representing the C sig_atomic_t type. (The concrete types of Foreign.C.Types#platform are platform-specific.) See Note [Lack of signals on wasm32-wasi].

Constructors

Instances19Bounded, Enum, Eq, Integral, Num, Ord, …
newtypenewtype CTime
#

Haskell type representing the C time_t type. (The concrete types of Foreign.C.Types#platform are platform-specific.)

Constructors

Instances11Enum, Eq, Num, Ord, Read, Real, …
  • Enum CTimeDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Eq CTimeDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Num CTimeDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ord CTimeDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Read CTimeDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Real CTimeDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Show CTimeDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Storable CTimeDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • NFData CTimeDefined in deepseq-1.5.0.0 · Control.DeepSeq
  • Prim CTimeDefined in primitive-0.9.1.0 · Data.Primitive.Types
  • Default CTimeDefined in data-default-0.8.0.1 · Data.Default.Internal
newtypenewtype CUChar
#

Haskell type representing the C unsigned char type. (The concrete types of Foreign.C.Types#platform are platform-specific.)

Constructors

Instances18Bounded, Enum, Eq, Integral, Num, Ord, …
  • Bounded CUCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Enum CUCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Eq CUCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Integral CUCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Num CUCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ord CUCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Read CUCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Real CUCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Show CUCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ix CUCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Bits CUCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • FiniteBits CUCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Storable CUCharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • NFData CUCharDefined in deepseq-1.5.0.0 · Control.DeepSeq
  • Random CUCharDefined in random-1.2.1.3 · System.Random
  • Uniform CUCharDefined in random-1.2.1.3 · System.Random.Internal
  • UniformRange CUCharDefined in random-1.2.1.3 · System.Random.Internal
  • Prim CUCharDefined in primitive-0.9.1.0 · Data.Primitive.Types
newtypenewtype CUIntMax
#

Constructors

Instances19Bounded, Enum, Eq, Integral, Num, Ord, …
  • Bounded CUIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Enum CUIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Eq CUIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Integral CUIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Num CUIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ord CUIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Read CUIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Real CUIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Show CUIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ix CUIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Bits CUIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • FiniteBits CUIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Storable CUIntMaxDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • NFData CUIntMaxDefined in deepseq-1.5.0.0 · Control.DeepSeq
  • Random CUIntMaxDefined in random-1.2.1.3 · System.Random
  • Uniform CUIntMaxDefined in random-1.2.1.3 · System.Random.Internal
  • UniformRange CUIntMaxDefined in random-1.2.1.3 · System.Random.Internal
  • Prim CUIntMaxDefined in primitive-0.9.1.0 · Data.Primitive.Types
  • Default CUIntMaxDefined in data-default-0.8.0.1 · Data.Default.Internal
newtypenewtype CUIntPtr
#

Constructors

Instances19Bounded, Enum, Eq, Integral, Num, Ord, …
  • Bounded CUIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Enum CUIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Eq CUIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Integral CUIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Num CUIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ord CUIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Read CUIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Real CUIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Show CUIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ix CUIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Bits CUIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • FiniteBits CUIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Storable CUIntPtrDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • NFData CUIntPtrDefined in deepseq-1.5.0.0 · Control.DeepSeq
  • Random CUIntPtrDefined in random-1.2.1.3 · System.Random
  • Uniform CUIntPtrDefined in random-1.2.1.3 · System.Random.Internal
  • UniformRange CUIntPtrDefined in random-1.2.1.3 · System.Random.Internal
  • Prim CUIntPtrDefined in primitive-0.9.1.0 · Data.Primitive.Types
  • Default CUIntPtrDefined in data-default-0.8.0.1 · Data.Default.Internal
newtypenewtype CULong
#

Haskell type representing the C unsigned long type. (The concrete types of Foreign.C.Types#platform are platform-specific.)

Constructors

Instances19Bounded, Enum, Eq, Integral, Num, Ord, …
  • Bounded CULongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Enum CULongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Eq CULongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Integral CULongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Num CULongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ord CULongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Read CULongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Real CULongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Show CULongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ix CULongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Bits CULongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • FiniteBits CULongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Storable CULongDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • NFData CULongDefined in deepseq-1.5.0.0 · Control.DeepSeq
  • Random CULongDefined in random-1.2.1.3 · System.Random
  • Uniform CULongDefined in random-1.2.1.3 · System.Random.Internal
  • UniformRange CULongDefined in random-1.2.1.3 · System.Random.Internal
  • Prim CULongDefined in primitive-0.9.1.0 · Data.Primitive.Types
  • Default CULongDefined in data-default-0.8.0.1 · Data.Default.Internal
newtypenewtype CUSeconds
#

Haskell type representing the C useconds_t type. (The concrete types of Foreign.C.Types#platform are platform-specific.)

Constructors

Instances11Enum, Eq, Num, Ord, Read, Real, …
  • Enum CUSecondsDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Eq CUSecondsDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Num CUSecondsDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ord CUSecondsDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Read CUSecondsDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Real CUSecondsDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Show CUSecondsDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Storable CUSecondsDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • NFData CUSecondsDefined in deepseq-1.5.0.0 · Control.DeepSeq
  • Prim CUSecondsDefined in primitive-0.9.1.0 · Data.Primitive.Types
  • Default CUSecondsDefined in data-default-0.8.0.1 · Data.Default.Internal
newtypenewtype CUShort
#

Haskell type representing the C unsigned short type. (The concrete types of Foreign.C.Types#platform are platform-specific.)

Constructors

Instances19Bounded, Enum, Eq, Integral, Num, Ord, …
  • Bounded CUShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Enum CUShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Eq CUShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Integral CUShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Num CUShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ord CUShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Read CUShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Real CUShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Show CUShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ix CUShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Bits CUShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • FiniteBits CUShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Storable CUShortDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • NFData CUShortDefined in deepseq-1.5.0.0 · Control.DeepSeq
  • Random CUShortDefined in random-1.2.1.3 · System.Random
  • Uniform CUShortDefined in random-1.2.1.3 · System.Random.Internal
  • UniformRange CUShortDefined in random-1.2.1.3 · System.Random.Internal
  • Prim CUShortDefined in primitive-0.9.1.0 · Data.Primitive.Types
  • Default CUShortDefined in data-default-0.8.0.1 · Data.Default.Internal
newtypenewtype CWchar
#

Haskell type representing the C wchar_t type. (The concrete types of Foreign.C.Types#platform are platform-specific.)

Constructors

Instances18Bounded, Enum, Eq, Integral, Num, Ord, …
  • Bounded CWcharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Enum CWcharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Eq CWcharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Integral CWcharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Num CWcharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ord CWcharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Read CWcharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Real CWcharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Show CWcharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Ix CWcharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Bits CWcharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • FiniteBits CWcharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • Storable CWcharDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Types
  • NFData CWcharDefined in deepseq-1.5.0.0 · Control.DeepSeq
  • Random CWcharDefined in random-1.2.1.3 · System.Random
  • Uniform CWcharDefined in random-1.2.1.3 · System.Random.Internal
  • UniformRange CWcharDefined in random-1.2.1.3 · System.Random.Internal
  • Prim CWcharDefined in primitive-0.9.1.0 · Data.Primitive.Types
valuewithCString :: String -> (CString -> IO a) -> IO a
#

Marshal a Haskell string into a NUL terminated C string using temporary storage.

  • the Haskell string may not contain any NUL characters

  • the memory is freed when the subcomputation terminates (either normally or via an exception), so the pointer to the temporary storage must not be used after this.

valuenewCString :: String -> IO CString
#

Marshal a Haskell string into a NUL terminated C string.

  • the Haskell string may not contain any NUL characters

  • new storage is allocated for the C string and must be explicitly freed using free or finalizerFree.

newtypenewtype Errno
#

Haskell representation for errno values. The implementation is deliberately exposed, to allow users to add their own definitions of Errno values.

Constructors

Instances1Eq
  • Eq ErrnoDefined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.Error
valueerrnoToIOError
  1. :: String

    the location where the error occurred

  2. -> Errno

    the error number

  3. -> Maybe Handle

    optional handle associated with the error

  4. -> Maybe String

    optional filename associated with the error

  5. -> IOError
#

Construct an IOError based on the given Errno value. The optional information can be used to improve the accuracy of error messages.

valuegetErrno :: IO Errno
#

Get the current value of errno in the current thread.

On GHC, the runtime will ensure that any Haskell thread will only see "its own" errno, by saving and restoring the value when Haskell threads are scheduled across OS threads.

valuewithCAStringLen :: String -> (CStringLen -> IO a) -> IO a
#

Marshal a Haskell string into a C string (ie, character array) in temporary storage, with explicit length information.

  • the memory is freed when the subcomputation terminates (either normally or via an exception), so the pointer to the temporary storage must not be used after this.

valuewithCAString :: String -> (CString -> IO a) -> IO a
#

Marshal a Haskell string into a NUL terminated C string using temporary storage.

  • the Haskell string may not contain any NUL characters

  • the memory is freed when the subcomputation terminates (either normally or via an exception), so the pointer to the temporary storage must not be used after this.

valueisValidErrno :: Errno -> Bool
#

Yield True if the given Errno value is valid on the system. This implies that the Eq instance of Errno is also system dependent as it is only defined for valid values of Errno.

valuethrowErrnoIf
  1. :: (a -> Bool)

    predicate to apply to the result value of the IO operation

  2. -> String

    textual description of the location

  3. -> IO a

    the IO operation to be executed

  4. -> IO a
#

Throw an IOError corresponding to the current value of getErrno if the result value of the IO action meets the given predicate.

valuethrowErrnoIfRetryMayBlock
  1. :: (a -> Bool)

    predicate to apply to the result value of the IO operation

  2. -> String

    textual description of the location

  3. -> IO a

    the IO operation to be executed

  4. -> IO b

    action to execute before retrying if an immediate retry would block

  5. -> IO a
#

as throwErrnoIfRetry, but additionally if the operation yields the error code eAGAIN or eWOULDBLOCK, an alternative action is executed before retrying.

valuewithCStringLen :: String -> (CStringLen -> IO a) -> IO a
#

Marshal a Haskell string into a C string (ie, character array) in temporary storage, with explicit length information.

  • the memory is freed when the subcomputation terminates (either normally or via an exception), so the pointer to the temporary storage must not be used after this.

valuecastCCharToChar :: CChar -> Char
#

Convert a C byte, representing a Latin-1 character, to the corresponding Haskell character.

valuecastCSCharToChar :: CSChar -> Char
#

Convert a C signed char, representing a Latin-1 character, to the corresponding Haskell character.

valuecastCUCharToChar :: CUChar -> Char
#

Convert a C unsigned char, representing a Latin-1 character, to the corresponding Haskell character.

valuecastCharToCChar :: Char -> CChar
#

Convert a Haskell character to a C character. This function is only safe on the first 256 characters.

valuecastCharToCSChar :: Char -> CSChar
#

Convert a Haskell character to a C signed char. This function is only safe on the first 256 characters.

valuecastCharToCUChar :: Char -> CUChar
#

Convert a Haskell character to a C unsigned char. This function is only safe on the first 256 characters.

valuenewCAString :: String -> IO CString
#

Marshal a Haskell string into a NUL terminated C string.

  • the Haskell string may not contain any NUL characters

  • new storage is allocated for the C string and must be explicitly freed using free or finalizerFree.

Marshal a Haskell string into a C string (ie, character array) with explicit length information.

  • new storage is allocated for the C string and must be explicitly freed using free or finalizerFree.

valuenewCWString :: String -> IO CWString
#

Marshal a Haskell string into a NUL terminated C wide string.

  • the Haskell string may not contain any NUL characters

  • new storage is allocated for the C wide string and must be explicitly freed using free or finalizerFree.

Marshal a Haskell string into a C wide string (ie, wide character array) with explicit length information.

  • new storage is allocated for the C wide string and must be explicitly freed using free or finalizerFree.

valuewithCWString :: String -> (CWString -> IO a) -> IO a
#

Marshal a Haskell string into a NUL terminated C wide string using temporary storage.

  • the Haskell string may not contain any NUL characters

  • the memory is freed when the subcomputation terminates (either normally or via an exception), so the pointer to the temporary storage must not be used after this.

valuewithCWStringLen :: String -> (CWStringLen -> IO a) -> IO a
#

Marshal a Haskell string into a C wide string (i.e. wide character array) in temporary storage, with explicit length information.

  • the memory is freed when the subcomputation terminates (either normally or via an exception), so the pointer to the temporary storage must not be used after this.

typetype CWString = Ptr CWchar
#

A C wide string is a reference to an array of C wide characters terminated by NUL.

typetype CWStringLen = (Ptr CWchar, Int)
#

A wide character string with explicit length information in CWchars instead of a terminating NUL (allowing NUL characters in the middle of the string).