ghc-lib-parser-9.10.1.20250103: The GHC API, decoupled from GHC versions

Safe Haskell | Ignore
Language | GHC2021

GHCi.FFI

# Documentation

data FFIType #

Constructors

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

#### Instances

Instances details

Binary FFIType # |
Instance details Defined in GHCi.FFI Methods put :: FFIType -> Put # get :: Get FFIType # putList :: [FFIType] -> Put #
Generic FFIType # |

Instance details

Defined in GHCi.FFI

Associated Types

type Rep FFIType |

Instance details

Defined in GHCi.FFI

type Rep FFIType = D1 ('MetaData "FFIType" "GHCi.FFI" "ghc-lib-parser-9.10.1.20250103-FaHJOkjTl0Y9STmjhYbIHo" '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)))))

Methods

from :: FFIType -> Rep FFIType x #

to :: Rep FFIType x -> FFIType #

Show FFIType # |
Instance details Defined in GHCi.FFI Methods showsPrec :: Int -> FFIType -> ShowS # show :: FFIType -> String # showList :: [FFIType] -> ShowS #
type Rep FFIType # |

Instance details

Defined in GHCi.FFI

type Rep FFIType = D1 ('MetaData "FFIType" "GHCi.FFI" "ghc-lib-parser-9.10.1.20250103-FaHJOkjTl0Y9STmjhYbIHo" '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 #

Constructors

FFICCall |
FFIStdCall |

#### Instances

Instances details

Binary FFIConv # |
Instance details Defined in GHCi.FFI Methods put :: FFIConv -> Put # get :: Get FFIConv # putList :: [FFIConv] -> Put #
Generic FFIConv # |

Instance details

Defined in GHCi.FFI

Associated Types

type Rep FFIConv |
Instance details Defined in GHCi.FFI type Rep FFIConv = D1 ('MetaData "FFIConv" "GHCi.FFI" "ghc-lib-parser-9.10.1.20250103-FaHJOkjTl0Y9STmjhYbIHo" 'False) (C1 ('MetaCons "FFICCall" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FFIStdCall" 'PrefixI 'False) (U1 :: Type -> Type))

Methods

from :: FFIConv -> Rep FFIConv x #

to :: Rep FFIConv x -> FFIConv #

Show FFIConv # |
Instance details Defined in GHCi.FFI Methods showsPrec :: Int -> FFIConv -> ShowS # show :: FFIConv -> String # showList :: [FFIConv] -> ShowS #
type Rep FFIConv # |
Instance details Defined in GHCi.FFI type Rep FFIConv = D1 ('MetaData "FFIConv" "GHCi.FFI" "ghc-lib-parser-9.10.1.20250103-FaHJOkjTl0Y9STmjhYbIHo" 'False) (C1 ('MetaCons "FFICCall" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FFIStdCall" 'PrefixI 'False) (U1 :: Type -> Type))

data C_ffi_cif #

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

freeForeignCallInfo :: Ptr C_ffi_cif -> IO () #