λ>
What do I type within GHCi to discover which GHC version it is using?
λ>
What do I type within GHCi to discover which GHC version it is using?
> import System.Info
> :browse
arch :: String
compilerName :: String
compilerVersion :: Data.Version.Version
os :: String
> compilerVersion
Version {versionBranch = [8,10], versionTags = []}
> compilerName
"ghc"
On top of that, GHCi prints its version on startup:
GHCi, version 8.10.3: https://www.haskell.org/ghc/ :? for help