commercialhaskell / stack

The Haskell Tool Stack
http://haskellstack.org
BSD 3-Clause "New" or "Revised" License
3.99k stars 845 forks source link

stack and ghc-head? #485

Closed phadej closed 9 years ago

phadej commented 9 years ago

Is it possible at all? I tried stack setup --system-ghc but it didn't work, it started to download *ghc-7.10.1`:

https://travis-ci.org/futurice/fum2github/jobs/69253335

snoyberg commented 9 years ago

See https://github.com/commercialhaskell/stack/issues/423 for a discussion which ended with adding --skip-GHC-check. If this works for you, it would be great if you could add it to the FAQ for others in the future.

alanz commented 9 years ago

Here is an example of using stack with ghc head

https://github.com/alanz/ghc-exactprint/blob/wip/test.sh and https://github.com/alanz/ghc-exactprint/blob/wip/stack-7.11.yaml

Very straightforward, but using system-installed ghc head

phadej commented 9 years ago

Seems it "works":

Thanks for the tip. @snoyberg should we add this to travis page in https://github.com/commercialhaskell/stack/issues/458 or have a separate entry in FAQ?

alanz commented 9 years ago

PS, semigroupoids does work with 7.11, you just need to add extra deps to your stack.yaml

extra-deps:
- semigroupoids-5.0.0.2
- bifunctors-5
- profunctors-5.1.1
- free-4.12.1
phadej commented 9 years ago

@alanz, seems that had to add lens-4.11 too in my example. It almost makes sense to have mini-stackage for kmett-universe.

snoyberg commented 9 years ago

Having it on the Travis page seems fine to me. Looks like the problem is resolved now, closing.