Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I determine my GHC version?

This is probably a very dumb question, but I can't seem to find the answer...

like image 307
Diego Saa Avatar asked Oct 25 '12 17:10

Diego Saa


People also ask

How do I check my ghc version?

Have you tried ghc --version in the command line? You might have multiple! A hacky but very easy way to check which ones is to type ghc- into your terminal, then hit tab to ask your shell for completions.

How do I update my ghc?

Stack Users GHC is automatically downloaded by Stack if you've switched to a new resolved that contains a new GHC version. You can find a list of resolvers at https://www.stackage.org. Find one which has the compiler you want to use and update your stack. yaml file.

Where does stack install ghc?

In its default configuration, Stack will simply ignore any system GHC installation and use a sandboxed GHC that it has installed itself. You can find these sandboxed GHC installations in the ghc-* directories in the stack path --programs directory.


1 Answers

To find which version my stack is using, I ran

$ stack ghc -- --version 

and got

$ stack ghc -- --version The Glorious Glasgow Haskell Compilation System, version 8.0.2 
like image 111
mherzl Avatar answered Oct 09 '22 04:10

mherzl