well-typed / hs-bindgen

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

Provide better API for `libclang`'s command line arguments #83

Open edsko opened 1 month ago

edsko commented 1 month ago

We currently configure libclang by passing a raw set of command line arguments (of type [String]). We should have a proper Haskell datatype that lists the libclang options we are interested in (and then internally translate this to [String]).

This is part of #10 and #71.

edsko commented 3 weeks ago

Perhaps some of the options we should support are the ones mentioned in the docs of 'CXDiagnosticDisplayOptions' (added in #176). However, this is only useful if we don't write our own renderer for libclang options (#174), and instead use diagnosticFormatted/clang_formatDiagnostic.

edsko commented 1 week ago

I'm going to define a record with some fields as a starting point for this.