Skip to content
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

support for foreign library artifacts (cabal 'foreign-library' stanza) #258

Open
aztecrex opened this issue Jan 28, 2018 · 8 comments
Open

Comments

@aztecrex
Copy link

This capability would allow us to easily configure shared native library output with hpack.

@sol
Copy link
Owner

sol commented Feb 2, 2018

Yes, absolutely! PRs accepted!

BTW, do you know when this was added to Cabal? I didn't find anything in the docs at https://www.haskell.org/cabal/users-guide/developing-packages.html#foreign-libraries. We need to know this to set the cabal-version accordingly.

@sol sol added the help wanted label Feb 2, 2018
@koflerdavid
Copy link

According to the changelog, it was added in v2.0.0.2.

@flip111
Copy link

flip111 commented Dec 29, 2018

@sol
Copy link
Owner

sol commented Dec 30, 2018

For what it's worth, for the time being it should be possible to use verbatim to add foreign libraries to a package.yaml file.

@isovector
Copy link

I'd like this feature too!

@Krantz-XRF
Copy link

I would love to work on this, but I had never dive into the source code of HPack. Can someone give me a big picture of which part of HPack is relevant, and perhaps which part should be modified?

@minimapletinytools
Copy link

minimapletinytools commented Dec 31, 2019

I wrote a demo of foreign-library feature here: https://github.com/pdlla/haskell-ffi-cabal-foreign-library-examples it works with stack too but you need to write your own .cabal file (see stack branch, which will get merged eventually).

I'd definitely love this feature for hpack :).

@ropwareJB
Copy link

PR for a basic attempt at this feature: #518

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

No branches or pull requests

8 participants