[英]How do I determine my GHC version?
这可能是一个非常愚蠢的问题,但我似乎无法找到答案......
为了找到我的stack
正在使用的版本,我运行了
$ stack ghc -- --version
并得到
$ stack ghc -- --version
The Glorious Glasgow Haskell Compilation System, version 8.0.2
ghc --version
在 Ubuntu 上成功了,感谢 Karolis!
编辑:也适用于 mac(macOS Sierra 10.12.6)
根据您的安装方法和体系结构,某些命令可能会有所不同。 有些人可能安装了多个版本。 以下是一些可能有用的信息:
堆栈版本
❯ stack --version
Version 2.1.3, Git revision 0fa51b9925decd937e4a993ad90cb686f88fa282 (7739 commits) x86_64 hpack-0.31.2
ghc 版本(如@mherzl 所述)
❯ stack ghc -- --version
The Glorious Glasgow Haskell Compilation System, version 8.6.5
标准 ghc 版本命令
❯ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.8.1
阴谋集团版本
❯ cabal --version
cabal-install version 3.0.0.0
compiled using version 3.0.0.0 of the Cabal library
GHC 的回复
❯ ghci --version
The Glorious Glasgow Haskell Compilation System, version 8.8.1
如果使用带有-fllvm
标志的 llvm
❯ llvm-gcc -v
Apple clang version 11.0.0 (clang-1100.0.33.16)
Target: x86_64-apple-darwin19.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.