-
Notifications
You must be signed in to change notification settings - Fork 694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve c2hs support #1906
Comments
Gtk2Hs has such dependency resolution: see https://github.com/gtk2hs/gtk2hs/blob/master/gtk/Gtk2HsSetup.hs . This can be reused, I suppose. |
I've made a minimal "Setup.hs" that implements dependency resolution from C2HS files (code is taken from Gtk2Hs with cleanup). This probably can be integrated into Cabal more easily. |
Let the computer figure out its own types for most foreign imports. Continue using the vanilla FFI for finalizers, though, as that’s the easiest way to deal with function pointers. Reuse the build hook from gtk2hs-buildtools to work around Cabal’s inability to topologically sort .chs dependencies (haskell/cabal#1906).
@vmchale Is it possible to use this package with stack? |
Continuing #55 -- I'm stuck in this bug now (using {#import's in C2HS, which fails without dependency resolution).
The text was updated successfully, but these errors were encountered: