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