ghc
The Glasgow Haskell Compiler. Compiles and links Haskell source files. More information: https://downloads.haskell.org/ghc/latest/docs/users_guide/usage.html.
- Find and compile all modules in the current directory:
ghc Main
- Compile a single file:
ghc
- Compile using extra optimization:
ghc -O
- Stop compilation after generating object files (
.o):
ghc -c
- Start a REPL (interactive shell):
ghci
- Evaluate a single expression:
ghc -e
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
