Identify Haskell Version Used in Project?

19 views
Skip to first unread message

Kevin Meredith

unread,
Apr 24, 2017, 10:34:00 PM4/24/17
to haskell-stack
Given a stack.yaml and myproject.cabal, how can I tell the Haskell version that my stack project is using?

In other words, I'm assuming that there's a place to specify which Haskell version to use when building a stack project.

Thanks

Michael Sloan

unread,
Apr 24, 2017, 10:47:46 PM4/24/17
to Kevin Meredith, haskell-stack
The GHC version is specified by the "resolver" in your config.  Lets say the value is "lts-8.12", then taking a look at this page will give the answer - https://www.stackage.org/lts-8.12 . Assuming that the compiler is installed, this should give you its version:

stack ghc -- --version

--
You received this message because you are subscribed to the Google Groups "haskell-stack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to haskell-stack+unsubscribe@googlegroups.com.
To post to this group, send email to haskel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/haskell-stack/6213f334-3fc7-4808-810d-163b6bab26c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages