Open edsko opened 3 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
)
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:libclang
itself (for bootstrapping; see https://github.com/well-typed/hs-bindgen/issues/80)xxHash
(see https://github.com/well-typed/hs-bindgen/issues/90 / https://github.com/well-typed/hs-bindgen/issues/71)