λ>
我在 GHCi
中输入什么内容|发现它使用的是哪个 GHC 版本?
最佳答案
> import System.Info
> :browse
arch :: String
compilerName :: String
compilerVersion :: Data.Version.Version
os :: String
> compilerVersion
Version {versionBranch = [8,10], versionTags = []}
> compilerName
"ghc"
最重要的是,GHCi 在启动时打印其版本:GHCi, version 8.10.3: https://www.haskell.org/ghc/ :? for help
关于haskell - 我可以从 GHCi 中找到 GHC 版本吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67798337/