ghc
The Glasgow Haskell Compiler. Compiles and links Haskell source files. More information: https://www.haskell.org/ghc.
- Find and compile all modules in the current directory:
ghc Main
- Compile a single file:
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}}
This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.