GHCi.FFI

ghci-8.2.0.20170404: The library supporting GHC's interactive interpreter

Safe Haskell | Safe
Language | Haskell2010

GHCi.FFI (signature[?])

# Documentation

data FFIType Source #

Constructors

FFIVoid |
FFIPointer |
FFIFloat |
FFIDouble |
FFISInt8 |
FFISInt16 |
FFISInt32 |
FFISInt64 |
FFIUInt8 |
FFIUInt16 |
FFIUInt32 |
FFIUInt64 |

Instances

Show FFIType # |
Methods showsPrec :: Int -> FFIType -> ShowS Source # show :: FFIType -> String Source # showList :: [FFIType] -> ShowS Source #
Generic FFIType # |
Associated Types type Rep FFIType :: * -> * Source # Methods from :: FFIType -> Rep FFIType x Source # to :: Rep FFIType x -> FFIType Source #
Binary FFIType # |
Methods put :: FFIType -> Put Source # get :: Get FFIType Source # putList :: [FFIType] -> Put Source #
type Rep FFIType # |
type Rep FFIType = D1 * (MetaData "FFIType" "GHCi.FFI" "ghci-8.2.0.20170404" False) ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "FFIVoid" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "FFIPointer" PrefixI False) (U1 *)) (C1 * (MetaCons "FFIFloat" PrefixI False) (U1 *)))) ((:+:) * (C1 * (MetaCons "FFIDouble" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "FFISInt8" PrefixI False) (U1 *)) (C1 * (MetaCons "FFISInt16" PrefixI False) (U1 *))))) ((:+:) * ((:+:) * (C1 * (MetaCons "FFISInt32" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "FFISInt64" PrefixI False) (U1 *)) (C1 * (MetaCons "FFIUInt8" PrefixI False) (U1 *)))) ((:+:) * (C1 * (MetaCons "FFIUInt16" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "FFIUInt32" PrefixI False) (U1 *)) (C1 * (MetaCons "FFIUInt64" PrefixI False) (U1 *))))))

data FFIConv Source #

Constructors

FFICCall |
FFIStdCall |

Instances

Show FFIConv # |
Methods showsPrec :: Int -> FFIConv -> ShowS Source # show :: FFIConv -> String Source # showList :: [FFIConv] -> ShowS Source #
Generic FFIConv # |
Associated Types type Rep FFIConv :: * -> * Source # Methods from :: FFIConv -> Rep FFIConv x Source # to :: Rep FFIConv x -> FFIConv Source #
Binary FFIConv # |
Methods put :: FFIConv -> Put Source # get :: Get FFIConv Source # putList :: [FFIConv] -> Put Source #
type Rep FFIConv # |
type Rep FFIConv = D1 * (MetaData "FFIConv" "GHCi.FFI" "ghci-8.2.0.20170404" False) ((:+:) * (C1 * (MetaCons "FFICCall" PrefixI False) (U1 *)) (C1 * (MetaCons "FFIStdCall" PrefixI False) (U1 *)))

data C_ffi_cif Source #

prepForeignCall :: FFIConv -> [FFIType] -> FFIType -> IO (Ptr C_ffi_cif) Source #

freeForeignCallInfo :: Ptr C_ffi_cif -> IO () Source #