GHCi.FFI

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

Safe Haskell | Safe
Language | Haskell2010

GHCi.FFI

# Documentation

data FFIType Source #

Constructors

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

#### Instances

Instances details

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

data FFIConv Source #

Constructors

FFICCall |
FFIStdCall |

#### Instances

Instances details

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

data C_ffi_cif Source #

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

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