`-ddump-rif2hs' reader output (earliest stuff in the compiler) `-ddump-rn4' renamer output `-ddump-tc' typechecker output `-ddump-deriv' derived instances `-ddump-ds' desugarer output `-ddump-simpl' simplifer output (Core-to-Core passes) (and don't forget `-O', too!) `-ddump-stranal' strictness analyser output (only works in conjunction with -ddump-simpl) `-ddump-occur-anal' `occurrence analysis' output (only works in conjunction with -ddump-simpl) `-ddump-spec' dump specialisation info `-ddump-stg' output of STG-to-STG passes `-ddump-absC' unflattened Abstract C `-ddump-flatC' flattened Abstract C `-ddump-realC' same as what goes to the C compiler `-ddump-asm' assembly language from the native-code generator
% ghc -noC -O -ddump-simpl -dverbose-simpl -dcore-lint Foo.hs