Skip to content

Create library to manage install dependencies #42

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

Closed
alanz opened this issue Jun 17, 2014 · 2 comments
Closed

Create library to manage install dependencies #42

alanz opened this issue Jun 17, 2014 · 2 comments

Comments

@alanz
Copy link

alanz commented Jun 17, 2014

At the moment cabal does not enforce build-tools clauses.

This cause a problem for language-javascript, which is a deep dependency in the yesod family, and it often fails to install due to a missing alex (and happy), as per
yesodweb/yesod#747

How about creating a tiny library that is part of the alex package, perhaps with a single function to return a version number, so that the dependencies can be managed in the normal way.

cc @snoyberg

@hvr
Copy link
Member

hvr commented May 28, 2015

While this would seem to be convenient as a workaround for cabal-install, it would at the same time complicate packaging for things like my GHC PPA (which packages alex and happy), where I would need to split alex into several packages for each GHC version, as well in general if you have multiple GHCs installed, and switch between them (as you'd have to reinstall alex for each of them to have the library visible in their respective pkg-db, and then you'd have to install alex globally, as otherwise sandboxes wouldn't see the alex library and you'd have again to rebuild alex for each sandbox otherwise)

In summary, I don't think this is a good idea to artificially attach a library to alex for the sole purpose of workarounding a cabal-deficiency which will hopefully be addressed at some point upstream, see also haskell/cabal#220

@alanz
Copy link
Author

alanz commented May 28, 2015

Ok

@alanz alanz closed this as completed May 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants