Set Hooks

The Binding Generator C->Haskell : Implementation of Haskell Binding Modules : Set Hooks
Previous: Get Hooks
Next: Pointer Hooks

## 2.9. Set Hooks

> `{#set apath#}`

Set hooks are formed in the same way as get hooks, but yield a function that assigns a value to a member of a C structure. These functions expect a pointer to the structure as the first and the value to be assigned as the second argument. For example, we may have

> `{#set sockaddr_in.sin_family#} addr_in (cFromEnum AF_NET)`

The Binding Generator C->Haskell : Implementation of Haskell Binding Modules : Set Hooks
Previous: Get Hooks
Next: Pointer Hooks