ghc
The Glasgow Haskell Compiler.
Compiles and links Haskell source files.
- Find and compile all modules in the current directory:
ghc Main
ghc {file.hs}
- Compile using extra optimization:
ghc -O {file.hs}
- Stop compilation after generating object files (.o):
ghc -c {file.hs}
- Start a REPL (interactive shell):
ghci
- Evaluate a single expression:
ghc -e {expression}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).