well-typed / hs-bindgen

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

Provide automatic backwards compatibility support #140

Open edsko opened 2 months ago

edsko commented 2 months ago

It is of course not possible in the general case to provide a single Haskell API (bindings) that can work with different versions of the underlying C library. However, one could imagine that for simple changes, there are things we can do:

etc.

phadej commented 2 months ago

This and other multi-version related issues need a diffing and merging support (not only figure out what's different, but also how to make a whole from two - or - more inputs). I'm afraid this can be come very tricky very fast.