The Binding Generator C->Haskell : Implementation of Haskell Binding Modules : Context Hooks
Previous: Import Hooks
Next: Type Hooks

2.2. Context Hooks

{#context [lib = lib] [prefix = prefix]#}

Context hooks define a set of global configuration options. Currently, there are two parameters which are both strings

Both parameters are optional. An example of a context hook is the following:

{#context prefix = "gtk"#}

If a binding module contains a binding hook, it must be the first hook in the module.


The Binding Generator C->Haskell : Implementation of Haskell Binding Modules : Context Hooks
Previous: Import Hooks
Next: Type Hooks