hacanon-light-2008.10.28: Template Haskell framework for automatic FFI code generation.

Foreign.HacanonLight.Common.Types

Documentation

data FFIDecl Source

Constructors

FFIDecl 

Fields

ffiUnique :: Name

Unique name of the FFI binding.

ffiName :: String

Name of the C function.

ffiType :: [DIS]

Interface scheme and hints.

ffiCallConv :: Callconv

Calling convention. Specified in the state or with hints.c

ffiSafety :: Safety
 
ffiPure :: Bool
 

data HsDecl Source

Constructors

HsDecl 

Fields

hsName :: Name

Name of the generated Haskel function.

hsFFIName :: Name

Name of the raw ffi binding.

hsType :: TypeQ

Type of the generated function.

hsBody :: ExpQ

Body of the generated function.

hsPure :: Bool

Is the function pure? (using unsafePerformIO if it is)