|Version 1 (modified by 7 years ago) (diff),|
Debugging the compiler
At compile time (see also the relevant User Manual section):
-v4to get an idea about what GHC is doing when the problem occurs.
-dcore-lintthe GHC command line when compiling each Haskell module. This makes GHC type-check the intermediate program after every optimisation pass, which often nails a fault.
-ddump-simplto see the optimised Core output. There are a number of other
-ddump-xflags; see the user manual.
- The flag
-ddump-xflags print much more verbose output. Use this if you are getting desperate!