well-typed / hs-bindgen

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

Preallocate in Haskell rather than allocate in C #154

Closed edsko closed 1 week ago

edsko commented 1 week ago

This avoids the possibility of an async exception resulting in a finalizer not being attached.

This also adds a render-comments mode to the command line, which is (for now anyway) useful for debugging dealing with comments.

Obsoletes #149.