The Binding Generator C->Haskell : Implementation of Haskell Binding Modules
Previous: Compilation of a Generated Haskell API
Next: Import Hooks

## 2. Implementation of Haskell Binding Modules

A discussion of binding modules, the principles behind the tool, and a discussion of related work can be found in a research paper located at http://www.cse.unsw.edu.au/~chak/papers/papers.html#c2hs. All features described in the paper, except `enum define` hooks are implemented in the tool, but since the publication of the paper, the tool has been extended further. The library interface essentially consists of the new Haskell FFI Marshalling Library. More details about this library are provided in the next section.

The remainder of this section describes the hooks that are available in binding modules.

### 2.1. Import Hooks

### 2.2. Context Hooks

### 2.3. Type Hooks

### 2.4. Sizeof Hooks

### 2.5. Enumeration Hooks

### 2.6. Call Hooks

### 2.7. Function Hooks

### 2.8. Get Hooks

### 2.9. Set Hooks

### 2.10. Pointer Hooks

### 2.11. Class Hooks

### 2.12. CPP Directives and Inline C Code

### 2.13. Grammar Rules

The Binding Generator C->Haskell : Implementation of Haskell Binding Modules
Previous: Compilation of a Generated Haskell API
Next: Import Hooks