Movatterモバイル変換


[0]ホーム

URL:


base-4.12.0.0: Basic libraries

Copyright(c) The FFI task force 2001
LicenseBSD-style (see the file libraries/base/LICENSE)
Maintainerffi@haskell.org
Stabilityprovisional
Portabilityportable
Safe HaskellTrustworthy
LanguageHaskell2010

Foreign.C.Types

Contents

Description

Mapping of C types to corresponding Haskell types.

Synopsis

Representations of C types

These types are needed to accurately represent C function prototypes,in order to access C library interfaces in Haskell. The Haskell systemis not required to represent those types exactly as C does, but thefollowing guarantees are provided concerning a Haskell typeCTrepresenting a C typet:

  • If a C function prototype hast as an argument or result type, the use ofCT in the corresponding position in a foreign declaration permits the Haskell program to access the full range of values encoded by the C type; and conversely, any Haskell value forCT has a valid representation in C.
  • sizeOf (undefined :: CT) will yield the same value assizeof (t) in C.
  • alignment (undefined :: CT) matches the alignment constraint enforced by the C implementation fort.
  • The memberspeek andpoke of theStorable class map all values ofCT to the corresponding value oft and vice versa.
  • When an instance ofBounded is defined forCT, the values ofminBound andmaxBound coincide witht_MIN andt_MAX in C.
  • When an instance ofEq orOrd is defined forCT, the predicates defined by the type class implement the same relation as the corresponding predicate in C ont.
  • When an instance ofNum,Read,Integral,Fractional,Floating,RealFrac, orRealFloat is defined forCT, the arithmetic operations defined by the type class implement the same function as the corresponding arithmetic operations (if available) in C ont.
  • When an instance ofBits is defined forCT, the bitwise operation defined by the type class implement the same function as the corresponding bitwise operation in C ont.

Platform differences

This module contains platform specific information about types. __/As such the types presented on this page reflect the platform on which the documentation was generated and may not coincide with the types on your platform./__

Integral types

These types are represented asnewtypes of types inData.Int andData.Word, and are instances ofEq,Ord,Num,Read,Show,Enum,Typeable,Storable,Bounded,Real,Integral andBits.

newtypeCCharSource#

Haskell type representing the Cchar type.

Constructors

CCharInt8 
Instances
BoundedCCharSource# 
Instance details

Defined inForeign.C.Types

EnumCCharSource# 
Instance details

Defined inForeign.C.Types

EqCCharSource# 
Instance details

Defined inForeign.C.Types

IntegralCCharSource# 
Instance details

Defined inForeign.C.Types

NumCCharSource# 
Instance details

Defined inForeign.C.Types

OrdCCharSource# 
Instance details

Defined inForeign.C.Types

ReadCCharSource# 
Instance details

Defined inForeign.C.Types

RealCCharSource# 
Instance details

Defined inForeign.C.Types

ShowCCharSource# 
Instance details

Defined inForeign.C.Types

FiniteBitsCCharSource# 
Instance details

Defined inForeign.C.Types

BitsCCharSource# 
Instance details

Defined inForeign.C.Types

StorableCCharSource# 
Instance details

Defined inForeign.C.Types

newtypeCSCharSource#

Haskell type representing the Csigned char type.

Constructors

CSCharInt8 
Instances
BoundedCSCharSource# 
Instance details

Defined inForeign.C.Types

EnumCSCharSource# 
Instance details

Defined inForeign.C.Types

EqCSCharSource# 
Instance details

Defined inForeign.C.Types

IntegralCSCharSource# 
Instance details

Defined inForeign.C.Types

NumCSCharSource# 
Instance details

Defined inForeign.C.Types

OrdCSCharSource# 
Instance details

Defined inForeign.C.Types

ReadCSCharSource# 
Instance details

Defined inForeign.C.Types

RealCSCharSource# 
Instance details

Defined inForeign.C.Types

ShowCSCharSource# 
Instance details

Defined inForeign.C.Types

FiniteBitsCSCharSource# 
Instance details

Defined inForeign.C.Types

BitsCSCharSource# 
Instance details

Defined inForeign.C.Types

StorableCSCharSource# 
Instance details

Defined inForeign.C.Types

newtypeCUCharSource#

Haskell type representing the Cunsigned char type.

Constructors

CUCharWord8 
Instances
BoundedCUCharSource# 
Instance details

Defined inForeign.C.Types

EnumCUCharSource# 
Instance details

Defined inForeign.C.Types

EqCUCharSource# 
Instance details

Defined inForeign.C.Types

IntegralCUCharSource# 
Instance details

Defined inForeign.C.Types

NumCUCharSource# 
Instance details

Defined inForeign.C.Types

OrdCUCharSource# 
Instance details

Defined inForeign.C.Types

ReadCUCharSource# 
Instance details

Defined inForeign.C.Types

RealCUCharSource# 
Instance details

Defined inForeign.C.Types

ShowCUCharSource# 
Instance details

Defined inForeign.C.Types

FiniteBitsCUCharSource# 
Instance details

Defined inForeign.C.Types

BitsCUCharSource# 
Instance details

Defined inForeign.C.Types

StorableCUCharSource# 
Instance details

Defined inForeign.C.Types

newtypeCShortSource#

Haskell type representing the Cshort type.

Constructors

CShortInt16 
Instances
BoundedCShortSource# 
Instance details

Defined inForeign.C.Types

EnumCShortSource# 
Instance details

Defined inForeign.C.Types

EqCShortSource# 
Instance details

Defined inForeign.C.Types

IntegralCShortSource# 
Instance details

Defined inForeign.C.Types

NumCShortSource# 
Instance details

Defined inForeign.C.Types

OrdCShortSource# 
Instance details

Defined inForeign.C.Types

ReadCShortSource# 
Instance details

Defined inForeign.C.Types

RealCShortSource# 
Instance details

Defined inForeign.C.Types

ShowCShortSource# 
Instance details

Defined inForeign.C.Types

FiniteBitsCShortSource# 
Instance details

Defined inForeign.C.Types

BitsCShortSource# 
Instance details

Defined inForeign.C.Types

StorableCShortSource# 
Instance details

Defined inForeign.C.Types

newtypeCUShortSource#

Haskell type representing the Cunsigned short type.

Constructors

CUShortWord16 
Instances
BoundedCUShortSource# 
Instance details

Defined inForeign.C.Types

EnumCUShortSource# 
Instance details

Defined inForeign.C.Types

EqCUShortSource# 
Instance details

Defined inForeign.C.Types

IntegralCUShortSource# 
Instance details

Defined inForeign.C.Types

NumCUShortSource# 
Instance details

Defined inForeign.C.Types

OrdCUShortSource# 
Instance details

Defined inForeign.C.Types

ReadCUShortSource# 
Instance details

Defined inForeign.C.Types

RealCUShortSource# 
Instance details

Defined inForeign.C.Types

ShowCUShortSource# 
Instance details

Defined inForeign.C.Types

FiniteBitsCUShortSource# 
Instance details

Defined inForeign.C.Types

BitsCUShortSource# 
Instance details

Defined inForeign.C.Types

Methods

(.&.) ::CUShort ->CUShort ->CUShortSource#

(.|.) ::CUShort ->CUShort ->CUShortSource#

xor ::CUShort ->CUShort ->CUShortSource#

complement ::CUShort ->CUShortSource#

shift ::CUShort ->Int ->CUShortSource#

rotate ::CUShort ->Int ->CUShortSource#

zeroBits ::CUShortSource#

bit ::Int ->CUShortSource#

setBit ::CUShort ->Int ->CUShortSource#

clearBit ::CUShort ->Int ->CUShortSource#

complementBit ::CUShort ->Int ->CUShortSource#

testBit ::CUShort ->Int ->BoolSource#

bitSizeMaybe ::CUShort ->MaybeIntSource#

bitSize ::CUShort ->IntSource#

isSigned ::CUShort ->BoolSource#

shiftL ::CUShort ->Int ->CUShortSource#

unsafeShiftL ::CUShort ->Int ->CUShortSource#

shiftR ::CUShort ->Int ->CUShortSource#

unsafeShiftR ::CUShort ->Int ->CUShortSource#

rotateL ::CUShort ->Int ->CUShortSource#

rotateR ::CUShort ->Int ->CUShortSource#

popCount ::CUShort ->IntSource#

StorableCUShortSource# 
Instance details

Defined inForeign.C.Types

newtypeCIntSource#

Haskell type representing the Cint type.

Constructors

CIntInt32 
Instances
BoundedCIntSource# 
Instance details

Defined inForeign.C.Types

EnumCIntSource# 
Instance details

Defined inForeign.C.Types

EqCIntSource# 
Instance details

Defined inForeign.C.Types

Methods

(==) ::CInt ->CInt ->Bool#

(/=) ::CInt ->CInt ->Bool#

IntegralCIntSource# 
Instance details

Defined inForeign.C.Types

NumCIntSource# 
Instance details

Defined inForeign.C.Types

OrdCIntSource# 
Instance details

Defined inForeign.C.Types

ReadCIntSource# 
Instance details

Defined inForeign.C.Types

RealCIntSource# 
Instance details

Defined inForeign.C.Types

ShowCIntSource# 
Instance details

Defined inForeign.C.Types

FiniteBitsCIntSource# 
Instance details

Defined inForeign.C.Types

BitsCIntSource# 
Instance details

Defined inForeign.C.Types

StorableCIntSource# 
Instance details

Defined inForeign.C.Types

newtypeCUIntSource#

Haskell type representing the Cunsigned int type.

Constructors

CUIntWord32 
Instances
BoundedCUIntSource# 
Instance details

Defined inForeign.C.Types

EnumCUIntSource# 
Instance details

Defined inForeign.C.Types

EqCUIntSource# 
Instance details

Defined inForeign.C.Types

IntegralCUIntSource# 
Instance details

Defined inForeign.C.Types

NumCUIntSource# 
Instance details

Defined inForeign.C.Types

OrdCUIntSource# 
Instance details

Defined inForeign.C.Types

ReadCUIntSource# 
Instance details

Defined inForeign.C.Types

RealCUIntSource# 
Instance details

Defined inForeign.C.Types

ShowCUIntSource# 
Instance details

Defined inForeign.C.Types

FiniteBitsCUIntSource# 
Instance details

Defined inForeign.C.Types

BitsCUIntSource# 
Instance details

Defined inForeign.C.Types

StorableCUIntSource# 
Instance details

Defined inForeign.C.Types

newtypeCLongSource#

Haskell type representing the Clong type.

Constructors

CLongInt64 
Instances
BoundedCLongSource# 
Instance details

Defined inForeign.C.Types

EnumCLongSource# 
Instance details

Defined inForeign.C.Types

EqCLongSource# 
Instance details

Defined inForeign.C.Types

IntegralCLongSource# 
Instance details

Defined inForeign.C.Types

NumCLongSource# 
Instance details

Defined inForeign.C.Types

OrdCLongSource# 
Instance details

Defined inForeign.C.Types

ReadCLongSource# 
Instance details

Defined inForeign.C.Types

RealCLongSource# 
Instance details

Defined inForeign.C.Types

ShowCLongSource# 
Instance details

Defined inForeign.C.Types

FiniteBitsCLongSource# 
Instance details

Defined inForeign.C.Types

BitsCLongSource# 
Instance details

Defined inForeign.C.Types

StorableCLongSource# 
Instance details

Defined inForeign.C.Types

newtypeCULongSource#

Haskell type representing the Cunsigned long type.

Constructors

CULongWord64 
Instances
BoundedCULongSource# 
Instance details

Defined inForeign.C.Types

EnumCULongSource# 
Instance details

Defined inForeign.C.Types

EqCULongSource# 
Instance details

Defined inForeign.C.Types

IntegralCULongSource# 
Instance details

Defined inForeign.C.Types

NumCULongSource# 
Instance details

Defined inForeign.C.Types

OrdCULongSource# 
Instance details

Defined inForeign.C.Types

ReadCULongSource# 
Instance details

Defined inForeign.C.Types

RealCULongSource# 
Instance details

Defined inForeign.C.Types

ShowCULongSource# 
Instance details

Defined inForeign.C.Types

FiniteBitsCULongSource# 
Instance details

Defined inForeign.C.Types

BitsCULongSource# 
Instance details

Defined inForeign.C.Types

StorableCULongSource# 
Instance details

Defined inForeign.C.Types

newtypeCPtrdiffSource#

Haskell type representing the Cptrdiff_t type.

Constructors

CPtrdiffInt64 
Instances
BoundedCPtrdiffSource# 
Instance details

Defined inForeign.C.Types

EnumCPtrdiffSource# 
Instance details

Defined inForeign.C.Types

EqCPtrdiffSource# 
Instance details

Defined inForeign.C.Types

IntegralCPtrdiffSource# 
Instance details

Defined inForeign.C.Types

NumCPtrdiffSource# 
Instance details

Defined inForeign.C.Types

OrdCPtrdiffSource# 
Instance details

Defined inForeign.C.Types

ReadCPtrdiffSource# 
Instance details

Defined inForeign.C.Types

RealCPtrdiffSource# 
Instance details

Defined inForeign.C.Types

ShowCPtrdiffSource# 
Instance details

Defined inForeign.C.Types

FiniteBitsCPtrdiffSource# 
Instance details

Defined inForeign.C.Types

BitsCPtrdiffSource# 
Instance details

Defined inForeign.C.Types

Methods

(.&.) ::CPtrdiff ->CPtrdiff ->CPtrdiffSource#

(.|.) ::CPtrdiff ->CPtrdiff ->CPtrdiffSource#

xor ::CPtrdiff ->CPtrdiff ->CPtrdiffSource#

complement ::CPtrdiff ->CPtrdiffSource#

shift ::CPtrdiff ->Int ->CPtrdiffSource#

rotate ::CPtrdiff ->Int ->CPtrdiffSource#

zeroBits ::CPtrdiffSource#

bit ::Int ->CPtrdiffSource#

setBit ::CPtrdiff ->Int ->CPtrdiffSource#

clearBit ::CPtrdiff ->Int ->CPtrdiffSource#

complementBit ::CPtrdiff ->Int ->CPtrdiffSource#

testBit ::CPtrdiff ->Int ->BoolSource#

bitSizeMaybe ::CPtrdiff ->MaybeIntSource#

bitSize ::CPtrdiff ->IntSource#

isSigned ::CPtrdiff ->BoolSource#

shiftL ::CPtrdiff ->Int ->CPtrdiffSource#

unsafeShiftL ::CPtrdiff ->Int ->CPtrdiffSource#

shiftR ::CPtrdiff ->Int ->CPtrdiffSource#

unsafeShiftR ::CPtrdiff ->Int ->CPtrdiffSource#

rotateL ::CPtrdiff ->Int ->CPtrdiffSource#

rotateR ::CPtrdiff ->Int ->CPtrdiffSource#

popCount ::CPtrdiff ->IntSource#

StorableCPtrdiffSource# 
Instance details

Defined inForeign.C.Types

newtypeCSizeSource#

Haskell type representing the Csize_t type.

Constructors

CSizeWord64 
Instances
BoundedCSizeSource# 
Instance details

Defined inForeign.C.Types

EnumCSizeSource# 
Instance details

Defined inForeign.C.Types

EqCSizeSource# 
Instance details

Defined inForeign.C.Types

IntegralCSizeSource# 
Instance details

Defined inForeign.C.Types

NumCSizeSource# 
Instance details

Defined inForeign.C.Types

OrdCSizeSource# 
Instance details

Defined inForeign.C.Types

ReadCSizeSource# 
Instance details

Defined inForeign.C.Types

RealCSizeSource# 
Instance details

Defined inForeign.C.Types

ShowCSizeSource# 
Instance details

Defined inForeign.C.Types

FiniteBitsCSizeSource# 
Instance details

Defined inForeign.C.Types

BitsCSizeSource# 
Instance details

Defined inForeign.C.Types

StorableCSizeSource# 
Instance details

Defined inForeign.C.Types

newtypeCWcharSource#

Haskell type representing the Cwchar_t type.

Constructors

CWcharInt32 
Instances
BoundedCWcharSource# 
Instance details

Defined inForeign.C.Types

EnumCWcharSource# 
Instance details

Defined inForeign.C.Types

EqCWcharSource# 
Instance details

Defined inForeign.C.Types

IntegralCWcharSource# 
Instance details

Defined inForeign.C.Types

NumCWcharSource# 
Instance details

Defined inForeign.C.Types

OrdCWcharSource# 
Instance details

Defined inForeign.C.Types

ReadCWcharSource# 
Instance details

Defined inForeign.C.Types

RealCWcharSource# 
Instance details

Defined inForeign.C.Types

ShowCWcharSource# 
Instance details

Defined inForeign.C.Types

FiniteBitsCWcharSource# 
Instance details

Defined inForeign.C.Types

BitsCWcharSource# 
Instance details

Defined inForeign.C.Types

StorableCWcharSource# 
Instance details

Defined inForeign.C.Types

newtypeCSigAtomicSource#

Haskell type representing the Csig_atomic_t type.

Constructors

CSigAtomicInt32 
Instances
BoundedCSigAtomicSource# 
Instance details

Defined inForeign.C.Types

EnumCSigAtomicSource# 
Instance details

Defined inForeign.C.Types

EqCSigAtomicSource# 
Instance details

Defined inForeign.C.Types

IntegralCSigAtomicSource# 
Instance details

Defined inForeign.C.Types

NumCSigAtomicSource# 
Instance details

Defined inForeign.C.Types

OrdCSigAtomicSource# 
Instance details

Defined inForeign.C.Types

ReadCSigAtomicSource# 
Instance details

Defined inForeign.C.Types

RealCSigAtomicSource# 
Instance details

Defined inForeign.C.Types

ShowCSigAtomicSource# 
Instance details

Defined inForeign.C.Types

FiniteBitsCSigAtomicSource# 
Instance details

Defined inForeign.C.Types

BitsCSigAtomicSource# 
Instance details

Defined inForeign.C.Types

Methods

(.&.) ::CSigAtomic ->CSigAtomic ->CSigAtomicSource#

(.|.) ::CSigAtomic ->CSigAtomic ->CSigAtomicSource#

xor ::CSigAtomic ->CSigAtomic ->CSigAtomicSource#

complement ::CSigAtomic ->CSigAtomicSource#

shift ::CSigAtomic ->Int ->CSigAtomicSource#

rotate ::CSigAtomic ->Int ->CSigAtomicSource#

zeroBits ::CSigAtomicSource#

bit ::Int ->CSigAtomicSource#

setBit ::CSigAtomic ->Int ->CSigAtomicSource#

clearBit ::CSigAtomic ->Int ->CSigAtomicSource#

complementBit ::CSigAtomic ->Int ->CSigAtomicSource#

testBit ::CSigAtomic ->Int ->BoolSource#

bitSizeMaybe ::CSigAtomic ->MaybeIntSource#

bitSize ::CSigAtomic ->IntSource#

isSigned ::CSigAtomic ->BoolSource#

shiftL ::CSigAtomic ->Int ->CSigAtomicSource#

unsafeShiftL ::CSigAtomic ->Int ->CSigAtomicSource#

shiftR ::CSigAtomic ->Int ->CSigAtomicSource#

unsafeShiftR ::CSigAtomic ->Int ->CSigAtomicSource#

rotateL ::CSigAtomic ->Int ->CSigAtomicSource#

rotateR ::CSigAtomic ->Int ->CSigAtomicSource#

popCount ::CSigAtomic ->IntSource#

StorableCSigAtomicSource# 
Instance details

Defined inForeign.C.Types

newtypeCLLongSource#

Haskell type representing the Clong long type.

Constructors

CLLongInt64 
Instances
BoundedCLLongSource# 
Instance details

Defined inForeign.C.Types

EnumCLLongSource# 
Instance details

Defined inForeign.C.Types

EqCLLongSource# 
Instance details

Defined inForeign.C.Types

IntegralCLLongSource# 
Instance details

Defined inForeign.C.Types

NumCLLongSource# 
Instance details

Defined inForeign.C.Types

OrdCLLongSource# 
Instance details

Defined inForeign.C.Types

ReadCLLongSource# 
Instance details

Defined inForeign.C.Types

RealCLLongSource# 
Instance details

Defined inForeign.C.Types

ShowCLLongSource# 
Instance details

Defined inForeign.C.Types

FiniteBitsCLLongSource# 
Instance details

Defined inForeign.C.Types

BitsCLLongSource# 
Instance details

Defined inForeign.C.Types

StorableCLLongSource# 
Instance details

Defined inForeign.C.Types

newtypeCULLongSource#

Haskell type representing the Cunsigned long long type.

Constructors

CULLongWord64 
Instances
BoundedCULLongSource# 
Instance details

Defined inForeign.C.Types

EnumCULLongSource# 
Instance details

Defined inForeign.C.Types

EqCULLongSource# 
Instance details

Defined inForeign.C.Types

IntegralCULLongSource# 
Instance details

Defined inForeign.C.Types

NumCULLongSource# 
Instance details

Defined inForeign.C.Types

OrdCULLongSource# 
Instance details

Defined inForeign.C.Types

ReadCULLongSource# 
Instance details

Defined inForeign.C.Types

RealCULLongSource# 
Instance details

Defined inForeign.C.Types

ShowCULLongSource# 
Instance details

Defined inForeign.C.Types

FiniteBitsCULLongSource# 
Instance details

Defined inForeign.C.Types

BitsCULLongSource# 
Instance details

Defined inForeign.C.Types

Methods

(.&.) ::CULLong ->CULLong ->CULLongSource#

(.|.) ::CULLong ->CULLong ->CULLongSource#

xor ::CULLong ->CULLong ->CULLongSource#

complement ::CULLong ->CULLongSource#

shift ::CULLong ->Int ->CULLongSource#

rotate ::CULLong ->Int ->CULLongSource#

zeroBits ::CULLongSource#

bit ::Int ->CULLongSource#

setBit ::CULLong ->Int ->CULLongSource#

clearBit ::CULLong ->Int ->CULLongSource#

complementBit ::CULLong ->Int ->CULLongSource#

testBit ::CULLong ->Int ->BoolSource#

bitSizeMaybe ::CULLong ->MaybeIntSource#

bitSize ::CULLong ->IntSource#

isSigned ::CULLong ->BoolSource#

shiftL ::CULLong ->Int ->CULLongSource#

unsafeShiftL ::CULLong ->Int ->CULLongSource#

shiftR ::CULLong ->Int ->CULLongSource#

unsafeShiftR ::CULLong ->Int ->CULLongSource#

rotateL ::CULLong ->Int ->CULLongSource#

rotateR ::CULLong ->Int ->CULLongSource#

popCount ::CULLong ->IntSource#

StorableCULLongSource# 
Instance details

Defined inForeign.C.Types

newtypeCBoolSource#

Haskell type representing the Cbool type.

Since: 4.10.0.0

Constructors

CBoolWord8 
Instances
BoundedCBoolSource# 
Instance details

Defined inForeign.C.Types

EnumCBoolSource# 
Instance details

Defined inForeign.C.Types

EqCBoolSource# 
Instance details

Defined inForeign.C.Types

IntegralCBoolSource# 
Instance details

Defined inForeign.C.Types

NumCBoolSource# 
Instance details

Defined inForeign.C.Types

OrdCBoolSource# 
Instance details

Defined inForeign.C.Types

ReadCBoolSource# 
Instance details

Defined inForeign.C.Types

RealCBoolSource# 
Instance details

Defined inForeign.C.Types

ShowCBoolSource# 
Instance details

Defined inForeign.C.Types

FiniteBitsCBoolSource# 
Instance details

Defined inForeign.C.Types

BitsCBoolSource# 
Instance details

Defined inForeign.C.Types

StorableCBoolSource# 
Instance details

Defined inForeign.C.Types

newtypeCIntPtrSource#

Constructors

CIntPtrInt64 
Instances
BoundedCIntPtrSource# 
Instance details

Defined inForeign.C.Types

EnumCIntPtrSource# 
Instance details

Defined inForeign.C.Types

EqCIntPtrSource# 
Instance details

Defined inForeign.C.Types

IntegralCIntPtrSource# 
Instance details

Defined inForeign.C.Types

NumCIntPtrSource# 
Instance details

Defined inForeign.C.Types

OrdCIntPtrSource# 
Instance details

Defined inForeign.C.Types

ReadCIntPtrSource# 
Instance details

Defined inForeign.C.Types

RealCIntPtrSource# 
Instance details

Defined inForeign.C.Types

ShowCIntPtrSource# 
Instance details

Defined inForeign.C.Types

FiniteBitsCIntPtrSource# 
Instance details

Defined inForeign.C.Types

BitsCIntPtrSource# 
Instance details

Defined inForeign.C.Types

Methods

(.&.) ::CIntPtr ->CIntPtr ->CIntPtrSource#

(.|.) ::CIntPtr ->CIntPtr ->CIntPtrSource#

xor ::CIntPtr ->CIntPtr ->CIntPtrSource#

complement ::CIntPtr ->CIntPtrSource#

shift ::CIntPtr ->Int ->CIntPtrSource#

rotate ::CIntPtr ->Int ->CIntPtrSource#

zeroBits ::CIntPtrSource#

bit ::Int ->CIntPtrSource#

setBit ::CIntPtr ->Int ->CIntPtrSource#

clearBit ::CIntPtr ->Int ->CIntPtrSource#

complementBit ::CIntPtr ->Int ->CIntPtrSource#

testBit ::CIntPtr ->Int ->BoolSource#

bitSizeMaybe ::CIntPtr ->MaybeIntSource#

bitSize ::CIntPtr ->IntSource#

isSigned ::CIntPtr ->BoolSource#

shiftL ::CIntPtr ->Int ->CIntPtrSource#

unsafeShiftL ::CIntPtr ->Int ->CIntPtrSource#

shiftR ::CIntPtr ->Int ->CIntPtrSource#

unsafeShiftR ::CIntPtr ->Int ->CIntPtrSource#

rotateL ::CIntPtr ->Int ->CIntPtrSource#

rotateR ::CIntPtr ->Int ->CIntPtrSource#

popCount ::CIntPtr ->IntSource#

StorableCIntPtrSource# 
Instance details

Defined inForeign.C.Types

newtypeCUIntPtrSource#

Constructors

CUIntPtrWord64 
Instances
BoundedCUIntPtrSource# 
Instance details

Defined inForeign.C.Types

EnumCUIntPtrSource# 
Instance details

Defined inForeign.C.Types

EqCUIntPtrSource# 
Instance details

Defined inForeign.C.Types

IntegralCUIntPtrSource# 
Instance details

Defined inForeign.C.Types

NumCUIntPtrSource# 
Instance details

Defined inForeign.C.Types

OrdCUIntPtrSource# 
Instance details

Defined inForeign.C.Types

ReadCUIntPtrSource# 
Instance details

Defined inForeign.C.Types

RealCUIntPtrSource# 
Instance details

Defined inForeign.C.Types

ShowCUIntPtrSource# 
Instance details

Defined inForeign.C.Types

FiniteBitsCUIntPtrSource# 
Instance details

Defined inForeign.C.Types

BitsCUIntPtrSource# 
Instance details

Defined inForeign.C.Types

Methods

(.&.) ::CUIntPtr ->CUIntPtr ->CUIntPtrSource#

(.|.) ::CUIntPtr ->CUIntPtr ->CUIntPtrSource#

xor ::CUIntPtr ->CUIntPtr ->CUIntPtrSource#

complement ::CUIntPtr ->CUIntPtrSource#

shift ::CUIntPtr ->Int ->CUIntPtrSource#

rotate ::CUIntPtr ->Int ->CUIntPtrSource#

zeroBits ::CUIntPtrSource#

bit ::Int ->CUIntPtrSource#

setBit ::CUIntPtr ->Int ->CUIntPtrSource#

clearBit ::CUIntPtr ->Int ->CUIntPtrSource#

complementBit ::CUIntPtr ->Int ->CUIntPtrSource#

testBit ::CUIntPtr ->Int ->BoolSource#

bitSizeMaybe ::CUIntPtr ->MaybeIntSource#

bitSize ::CUIntPtr ->IntSource#

isSigned ::CUIntPtr ->BoolSource#

shiftL ::CUIntPtr ->Int ->CUIntPtrSource#

unsafeShiftL ::CUIntPtr ->Int ->CUIntPtrSource#

shiftR ::CUIntPtr ->Int ->CUIntPtrSource#

unsafeShiftR ::CUIntPtr ->Int ->CUIntPtrSource#

rotateL ::CUIntPtr ->Int ->CUIntPtrSource#

rotateR ::CUIntPtr ->Int ->CUIntPtrSource#

popCount ::CUIntPtr ->IntSource#

StorableCUIntPtrSource# 
Instance details

Defined inForeign.C.Types

newtypeCIntMaxSource#

Constructors

CIntMaxInt64 
Instances
BoundedCIntMaxSource# 
Instance details

Defined inForeign.C.Types

EnumCIntMaxSource# 
Instance details

Defined inForeign.C.Types

EqCIntMaxSource# 
Instance details

Defined inForeign.C.Types

IntegralCIntMaxSource# 
Instance details

Defined inForeign.C.Types

NumCIntMaxSource# 
Instance details

Defined inForeign.C.Types

OrdCIntMaxSource# 
Instance details

Defined inForeign.C.Types

ReadCIntMaxSource# 
Instance details

Defined inForeign.C.Types

RealCIntMaxSource# 
Instance details

Defined inForeign.C.Types

ShowCIntMaxSource# 
Instance details

Defined inForeign.C.Types

FiniteBitsCIntMaxSource# 
Instance details

Defined inForeign.C.Types

BitsCIntMaxSource# 
Instance details

Defined inForeign.C.Types

Methods

(.&.) ::CIntMax ->CIntMax ->CIntMaxSource#

(.|.) ::CIntMax ->CIntMax ->CIntMaxSource#

xor ::CIntMax ->CIntMax ->CIntMaxSource#

complement ::CIntMax ->CIntMaxSource#

shift ::CIntMax ->Int ->CIntMaxSource#

rotate ::CIntMax ->Int ->CIntMaxSource#

zeroBits ::CIntMaxSource#

bit ::Int ->CIntMaxSource#

setBit ::CIntMax ->Int ->CIntMaxSource#

clearBit ::CIntMax ->Int ->CIntMaxSource#

complementBit ::CIntMax ->Int ->CIntMaxSource#

testBit ::CIntMax ->Int ->BoolSource#

bitSizeMaybe ::CIntMax ->MaybeIntSource#

bitSize ::CIntMax ->IntSource#

isSigned ::CIntMax ->BoolSource#

shiftL ::CIntMax ->Int ->CIntMaxSource#

unsafeShiftL ::CIntMax ->Int ->CIntMaxSource#

shiftR ::CIntMax ->Int ->CIntMaxSource#

unsafeShiftR ::CIntMax ->Int ->CIntMaxSource#

rotateL ::CIntMax ->Int ->CIntMaxSource#

rotateR ::CIntMax ->Int ->CIntMaxSource#

popCount ::CIntMax ->IntSource#

StorableCIntMaxSource# 
Instance details

Defined inForeign.C.Types

newtypeCUIntMaxSource#

Constructors

CUIntMaxWord64 
Instances
BoundedCUIntMaxSource# 
Instance details

Defined inForeign.C.Types

EnumCUIntMaxSource# 
Instance details

Defined inForeign.C.Types

EqCUIntMaxSource# 
Instance details

Defined inForeign.C.Types

IntegralCUIntMaxSource# 
Instance details

Defined inForeign.C.Types

NumCUIntMaxSource# 
Instance details

Defined inForeign.C.Types

OrdCUIntMaxSource# 
Instance details

Defined inForeign.C.Types

ReadCUIntMaxSource# 
Instance details

Defined inForeign.C.Types

RealCUIntMaxSource# 
Instance details

Defined inForeign.C.Types

ShowCUIntMaxSource# 
Instance details

Defined inForeign.C.Types

FiniteBitsCUIntMaxSource# 
Instance details

Defined inForeign.C.Types

BitsCUIntMaxSource# 
Instance details

Defined inForeign.C.Types

Methods

(.&.) ::CUIntMax ->CUIntMax ->CUIntMaxSource#

(.|.) ::CUIntMax ->CUIntMax ->CUIntMaxSource#

xor ::CUIntMax ->CUIntMax ->CUIntMaxSource#

complement ::CUIntMax ->CUIntMaxSource#

shift ::CUIntMax ->Int ->CUIntMaxSource#

rotate ::CUIntMax ->Int ->CUIntMaxSource#

zeroBits ::CUIntMaxSource#

bit ::Int ->CUIntMaxSource#

setBit ::CUIntMax ->Int ->CUIntMaxSource#

clearBit ::CUIntMax ->Int ->CUIntMaxSource#

complementBit ::CUIntMax ->Int ->CUIntMaxSource#

testBit ::CUIntMax ->Int ->BoolSource#

bitSizeMaybe ::CUIntMax ->MaybeIntSource#

bitSize ::CUIntMax ->IntSource#

isSigned ::CUIntMax ->BoolSource#

shiftL ::CUIntMax ->Int ->CUIntMaxSource#

unsafeShiftL ::CUIntMax ->Int ->CUIntMaxSource#

shiftR ::CUIntMax ->Int ->CUIntMaxSource#

unsafeShiftR ::CUIntMax ->Int ->CUIntMaxSource#

rotateL ::CUIntMax ->Int ->CUIntMaxSource#

rotateR ::CUIntMax ->Int ->CUIntMaxSource#

popCount ::CUIntMax ->IntSource#

StorableCUIntMaxSource# 
Instance details

Defined inForeign.C.Types

Numeric types

These types are represented asnewtypes of basic foreign types, and are instances ofEq,Ord,Num,Read,Show,Enum,Typeable andStorable.

newtypeCClockSource#

Haskell type representing the Cclock_t type.

Constructors

CClockInt64 
Instances
EnumCClockSource# 
Instance details

Defined inForeign.C.Types

EqCClockSource# 
Instance details

Defined inForeign.C.Types

NumCClockSource# 
Instance details

Defined inForeign.C.Types

OrdCClockSource# 
Instance details

Defined inForeign.C.Types

ReadCClockSource# 
Instance details

Defined inForeign.C.Types

RealCClockSource# 
Instance details

Defined inForeign.C.Types

ShowCClockSource# 
Instance details

Defined inForeign.C.Types

StorableCClockSource# 
Instance details

Defined inForeign.C.Types

newtypeCTimeSource#

Haskell type representing the Ctime_t type.

Constructors

CTimeInt64 
Instances
EnumCTimeSource# 
Instance details

Defined inForeign.C.Types

EqCTimeSource# 
Instance details

Defined inForeign.C.Types

NumCTimeSource# 
Instance details

Defined inForeign.C.Types

OrdCTimeSource# 
Instance details

Defined inForeign.C.Types

ReadCTimeSource# 
Instance details

Defined inForeign.C.Types

RealCTimeSource# 
Instance details

Defined inForeign.C.Types

ShowCTimeSource# 
Instance details

Defined inForeign.C.Types

StorableCTimeSource# 
Instance details

Defined inForeign.C.Types

newtypeCUSecondsSource#

Haskell type representing the Cuseconds_t type.

Since: 4.4.0.0

Constructors

CUSecondsWord32 
Instances
EnumCUSecondsSource# 
Instance details

Defined inForeign.C.Types

EqCUSecondsSource# 
Instance details

Defined inForeign.C.Types

NumCUSecondsSource# 
Instance details

Defined inForeign.C.Types

OrdCUSecondsSource# 
Instance details

Defined inForeign.C.Types

ReadCUSecondsSource# 
Instance details

Defined inForeign.C.Types

RealCUSecondsSource# 
Instance details

Defined inForeign.C.Types

ShowCUSecondsSource# 
Instance details

Defined inForeign.C.Types

StorableCUSecondsSource# 
Instance details

Defined inForeign.C.Types

newtypeCSUSecondsSource#

Haskell type representing the Csuseconds_t type.

Since: 4.4.0.0

Constructors

CSUSecondsInt64 
Instances
EnumCSUSecondsSource# 
Instance details

Defined inForeign.C.Types

EqCSUSecondsSource# 
Instance details

Defined inForeign.C.Types

NumCSUSecondsSource# 
Instance details

Defined inForeign.C.Types

OrdCSUSecondsSource# 
Instance details

Defined inForeign.C.Types

ReadCSUSecondsSource# 
Instance details

Defined inForeign.C.Types

RealCSUSecondsSource# 
Instance details

Defined inForeign.C.Types

ShowCSUSecondsSource# 
Instance details

Defined inForeign.C.Types

StorableCSUSecondsSource# 
Instance details

Defined inForeign.C.Types

To convertCTime toUTCTime, use the following:

\t -> posixSecondsToUTCTime (realToFrac t :: POSIXTime)

Floating types

These types are represented asnewtypes ofFloat andDouble, and are instances ofEq,Ord,Num,Read,Show,Enum,Typeable,Storable,Real,Fractional,Floating,RealFrac andRealFloat. That does mean thatCFloat's (respectivelyCDouble's) instances ofEq,Ord,Num andFractional are as badly behaved asFloat's (respectivelyDouble's).

newtypeCFloatSource#

Haskell type representing the Cfloat type.

Constructors

CFloatFloat 
Instances
EnumCFloatSource# 
Instance details

Defined inForeign.C.Types

EqCFloatSource# 
Instance details

Defined inForeign.C.Types

FloatingCFloatSource# 
Instance details

Defined inForeign.C.Types

FractionalCFloatSource# 
Instance details

Defined inForeign.C.Types

NumCFloatSource# 
Instance details

Defined inForeign.C.Types

OrdCFloatSource# 
Instance details

Defined inForeign.C.Types

ReadCFloatSource# 
Instance details

Defined inForeign.C.Types

RealCFloatSource# 
Instance details

Defined inForeign.C.Types

RealFloatCFloatSource# 
Instance details

Defined inForeign.C.Types

RealFracCFloatSource# 
Instance details

Defined inForeign.C.Types

ShowCFloatSource# 
Instance details

Defined inForeign.C.Types

StorableCFloatSource# 
Instance details

Defined inForeign.C.Types

newtypeCDoubleSource#

Haskell type representing the Cdouble type.

Constructors

CDoubleDouble 
Instances
EnumCDoubleSource# 
Instance details

Defined inForeign.C.Types

EqCDoubleSource# 
Instance details

Defined inForeign.C.Types

FloatingCDoubleSource# 
Instance details

Defined inForeign.C.Types

FractionalCDoubleSource# 
Instance details

Defined inForeign.C.Types

NumCDoubleSource# 
Instance details

Defined inForeign.C.Types

OrdCDoubleSource# 
Instance details

Defined inForeign.C.Types

ReadCDoubleSource# 
Instance details

Defined inForeign.C.Types

RealCDoubleSource# 
Instance details

Defined inForeign.C.Types

RealFloatCDoubleSource# 
Instance details

Defined inForeign.C.Types

RealFracCDoubleSource# 
Instance details

Defined inForeign.C.Types

ShowCDoubleSource# 
Instance details

Defined inForeign.C.Types

StorableCDoubleSource# 
Instance details

Defined inForeign.C.Types

Other types

dataCFileSource#

Haskell type representing the CFILE type.

dataCFposSource#

Haskell type representing the Cfpos_t type.

dataCJmpBufSource#

Haskell type representing the Cjmp_buf type.

Produced byHaddock version 2.20.0


[8]ページ先頭

©2009-2025 Movatter.jp