1 example for ghc
# compile foobar.hs # creates "foobar" executable in . ghc foobar.hs # high optimization ghc -O2 foobar.hs # no optimization, good for debugging ghc -O0 foobar.hs # profiling ghc -prof -caf-all -auto-all foobar.hs # create a profile report! (foobar.prof) ./foobar +RTS -p -RTS # show all exception stack traces! ./foobar +RTS -xc -RTS # force recompilation (even if foobar.o exists already) ghc -fforce-recomp foobar.hs