[英]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.