Closed DanBurton closed 9 years ago
The natural thing to do is set GHC_PACKAGE_PATH, among other things.
https://downloads.haskell.org/~ghc/7.0.2/docs/html/users_guide/packages.html#ghc-package-path
However, this is incompatible with cabal. In fact, cabal sometimes has problems when run inside of cabal exec
. This may be quite tricky to work around.
Implement for Stackage.Environment
as in https://github.com/fpco/stackage-common/issues/1.
Note: put in stackage-common
For now, the only workflow supported is the "do things yourself with cabal" workflow. stackage-exec will put the right ghc
and cabal
on your PATH, and leave it up to you to take it from there.
Let's create new issues for other workflows that we want to support. (e.g. the "run in docker" workflow.)
Detecting the correct versions of things based on a given snapshot is also not done yet. Progress on that is tracked in #23.
Do the needful.