This is probably a very dumb question, but I can't seem to find the answer...
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With