fpco / stackage-cli

MIT License
28 stars 4 forks source link

stackage-exec #25

Closed DanBurton closed 9 years ago

DanBurton commented 9 years ago

Do the needful.

DanBurton commented 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.

chrisdone commented 9 years ago

Implement for Stackage.Environment as in https://github.com/fpco/stackage-common/issues/1.

DanBurton commented 9 years ago

Note: put in stackage-common

DanBurton commented 9 years ago

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.