well-typed / hs-bindgen

Automatically generate Haskell bindings from C header files
20 stars 0 forks source link

Example bindings #91

Open edsko opened 2 months ago

edsko commented 2 months ago

When thinking about high-levels patterns (both for the design of hs-bindgen-patterns in milestone 2, but also for the high API in milestone 3), it would be very helpful to have some examples in mind. Some options are:

phadej commented 2 months ago

The https://github.com/niklasso/minisat-c-bindings/blob/master/minisat.h is one simple library (which uses structs as inputs and outputs if you configure it so)

Also has an example of not using an enum for an enumeration (minisat_lbool)