ghc
ghc
TLDR
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]
Run Haskell interactive interpreter (REPL)
$ ghci
Evaluate a single expression
$ ghc -e [expression]