Create library to manage install dependencies #42

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

Projects

None yet

2 participants

@alanz

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

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

Ok

@alanz alanz closed this May 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment