well-typed / hs-bindgen

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

Avoid (or patch) `haskell-src-exts` #158

Open edsko opened 1 week ago

edsko commented 1 week ago

As of #157 we use our own internal Haskell AST, but we still use haskell-src-exts to generate a standalone Haskell file. To some degree this is helpful, as it provides us with a type-level sanity check of the Haskell code we are rendering. However, haskell-src-exts doesn't quite support everything we need; for example, it does not support CTYPE newtype annotations. We'll therefore have to eventually replace it or patch it.