Skip to content

Conversation

@CMCDragonkai
Copy link
Member

This adds an example of using FFI into the Haskell-Demo. Especially in terms of the combination between Nix, Cabal, Hpack... etc.

No example of c2hs or Storable nor usage of a system library. I'm thinking we should demonstrate something like using zlib as a nativeBuildInput in default.nix and then using it in the example, and seeing how that header is included, and whether we need to put in some environment variables or something.

Relevant issue: sol/hpack#355

@CMCDragonkai CMCDragonkai self-assigned this Feb 24, 2019
@CMCDragonkai CMCDragonkai merged commit 0f26f4a into master Feb 24, 2019
@CMCDragonkai CMCDragonkai deleted the ffi branch February 24, 2019 08:32
@CMCDragonkai
Copy link
Member Author

Also I just discovered that c-sources in package.yaml supports globbing: sol/hpack#131

@CMCDragonkai
Copy link
Member Author

sol/hpack#355

Okay, I solved it by using the field extra-source-files. So, I guess you don't really need it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants