ghci
The Glasgow Haskell Compiler's interactive environment. More information: https://downloads.haskell.org/ghc/latest/docs/users_guide/ghci.html.
- Start a REPL (interactive shell):
ghci
- Start a REPL and load the specified Haskell source file:
ghci
- Start a REPL and enable a language option:
ghci -X
- Start a REPL and enable some level of compiler warnings (e.g.
allorcompact):
ghci -W
- Start a REPL with a colon-separated list of directories for finding source files:
ghci -i
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
