ghc

ghc

TLDR

Find and compile all modules in the current directory

$ ghc Main
copy

Compile a single file

$ ghc [file.hs]
copy

Compile using extra optimization

$ ghc -O [file.hs]
copy

Stop compilation after generating object files (.o)

$ ghc -c [file.hs]
copy

Run Haskell interactive interpreter (REPL)

$ ghci
copy

Evaluate a single expression

$ ghc -e [expression]
copy

Copied to clipboard
free 100$ digital ocean credit