haskell - 我可以从 GHCi 中找到 GHC 版本吗?

标签 haskell ghci

λ> 
我在 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/

相关文章:

haskell - 过滤包含列表元素的列表列表的元素

haskell - 在 Archlinux 上设置 Haskell 的建议方法是什么?

haskell - liftM、lilftA等中首选什么

haskell - 如何在 ghci 中加载包含空格的模块

haskell - 为什么我得到 "class Num a where"而不是 "class (Eq a, Show a) => Num a"?

haskell - Data Parallel Haskell/GHC 7.4.2 的运行时异常

haskell - 使用绑定(bind)在 haskell 中调用自定义 monad

haskell - react 香蕉 : how to use values from a remote API and merge them in the event stream

haskell - 在 Haskell 中实现内存功能

windows - Tab 完成和箭头键在 Git Bash 的 GHCI 中不起作用