UnliftIO.Foreign

Re-exported modules

Unlifted Foreign.C.String

type CString

type CStringLen

peekCString

peekCStringLen

newCString

newCStringLen

withCString

withCStringLen

charIsRepresentable

castCharToCChar

castCCharToChar

castCharToCUChar

castCUCharToChar

castCharToCSChar

castCSCharToChar

peekCAString

peekCAStringLen

newCAString

newCAStringLen

withCAString

withCAStringLen

type CWString

type CWStringLen

peekCWString

peekCWStringLen

newCWString

newCWStringLen

withCWString

withCWStringLen

Unlifted Foreign.C.Error

data Errno

eOK

e2BIG

eACCES

eADDRINUSE

eADDRNOTAVAIL

eADV

eAFNOSUPPORT

eAGAIN

eALREADY

eBADF

eBADMSG

eBADRPC

eBUSY

eCHILD

eCOMM

eCONNABORTED

eCONNREFUSED

eCONNRESET

eDEADLK

eDESTADDRREQ

eDIRTY

eDOM

eDQUOT

eEXIST

eFAULT

eFBIG

eFTYPE

eHOSTDOWN

eHOSTUNREACH

eIDRM

eILSEQ

eINPROGRESS

eINTR

eINVAL

eIO

eISCONN

eISDIR

eLOOP

eMFILE

eMLINK

eMSGSIZE

eMULTIHOP

eNAMETOOLONG

eNETDOWN

eNETRESET

eNETUNREACH

eNFILE

eNOBUFS

eNODATA

eNODEV

eNOENT

eNOEXEC

eNOLCK

eNOLINK

eNOMEM

eNOMSG

eNONET

eNOPROTOOPT

eNOSPC

eNOSR

eNOSTR

eNOSYS

eNOTBLK

eNOTCONN

eNOTDIR

eNOTEMPTY

eNOTSOCK

eNOTSUP

eNOTTY

eNXIO

eOPNOTSUPP

ePERM

ePFNOSUPPORT

ePIPE

ePROCLIM

ePROCUNAVAIL

ePROGMISMATCH

ePROGUNAVAIL

ePROTO

ePROTONOSUPPORT

ePROTOTYPE

eRANGE

eREMCHG

eREMOTE

eROFS

eRPCMISMATCH

eRREMOTE

eSHUTDOWN

eSOCKTNOSUPPORT

eSPIPE

eSRCH

eSRMNT

eSTALE

eTIME

eTIMEDOUT

eTOOMANYREFS

eTXTBSY

eUSERS

eWOULDBLOCK

eXDEV

isValidErrno

getErrno

resetErrno

errnoToIOError

throwErrno

throwErrnoIf

throwErrnoIf_

throwErrnoIfRetry

throwErrnoIfRetry_

throwErrnoIfMinus1

throwErrnoIfMinus1_

throwErrnoIfMinus1Retry

throwErrnoIfMinus1Retry_

throwErrnoIfNull

throwErrnoIfNullRetry

throwErrnoIfRetryMayBlock

throwErrnoIfRetryMayBlock_

throwErrnoIfMinus1RetryMayBlock

throwErrnoIfMinus1RetryMayBlock_

throwErrnoIfNullRetryMayBlock

throwErrnoPath

throwErrnoPathIf

throwErrnoPathIf_

throwErrnoPathIfNull

throwErrnoPathIfMinus1

throwErrnoPathIfMinus1_

Unlifted Foreign.Ptr

data Ptr a

nullPtr

castPtr

plusPtr

alignPtr

minusPtr

data FunPtr a

nullFunPtr

castFunPtr

castFunPtrToPtr

castPtrToFunPtr

freeHaskellFunPtr

data IntPtr

ptrToIntPtr

intPtrToPtr

data WordPtr

ptrToWordPtr

wordPtrToPtr

Unlifted Foreign.ForeignPtr

data ForeignPtr a

type FinalizerPtr a

type FinalizerEnvPtr env a

newForeignPtr

newForeignPtr_

addForeignPtrFinalizer

newForeignPtrEnv

addForeignPtrFinalizerEnv

withForeignPtr

finalizeForeignPtr

touchForeignPtr

castForeignPtr

mallocForeignPtr

mallocForeignPtrBytes

mallocForeignPtrArray

mallocForeignPtrArray0

newGHCForeignPtr

addGHCForeignPtrFinalizer

unsafeForeignPtrToPtr

Unlifted Foreign.StablePtr

data StablePtr a

newStablePtr

deRefStablePtr

freeStablePtr

castStablePtrToPtr

castPtrToStablePtr

Unlifted Foreign.Storable

class Storable a

Unlifted Foreign.Marshal.Alloc

alloca

allocaBytes

allocaBytesAligned

malloc

mallocBytes

calloc

callocBytes

realloc

reallocBytes

free

finalizerFree

Unlifted Foreign.Marshal.Array

mallocArray

mallocArray0

allocaArray

allocaArray0

reallocArray

reallocArray0

callocArray

callocArray0

peekArray

peekArray0

pokeArray

pokeArray0

newArray

newArray0

withArray

withArray0

withArrayLen

withArrayLen0

copyArray

moveArray

lengthArray0

advancePtr

Unlifted Foreign.Marshal.Error

throwIf

throwIf_

throwIfNeg

throwIfNeg_

throwIfNull

Unlifted Foreign.Marshal.Pool

data Pool

newPool

freePool

withPool

pooledMalloc

pooledMallocBytes

pooledRealloc

pooledReallocBytes

pooledMallocArray

pooledMallocArray0

pooledReallocArray

pooledReallocArray0

pooledNew

pooledNewArray

pooledNewArray0

Unlifted Foreign.Marshal.Utils

with

new

fromBool

toBool

maybeNew

maybeWith

maybePeek

withMany

copyBytes

moveBytes

fillBytes