Changes between Version 16 and Version 17 of Attic/BeginnersNotes


Ignore:
Timestamp:
Jun 29, 2006 10:14:32 AM (8 years ago)
Author:
guest
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Attic/BeginnersNotes

    v16 v17  
    3636 
    3737 1. Make good use of `ASSERT ( booleanCondition )`, or better yet, `ASSERT2 ( booleanCondition, msg )` 
    38  1. You can add typecheking status messages with `!traceTc sDoc` 
     38 1. You can add trace messages to the forcing of `expr` with `pprTrace str sDoc $ expr` 
    3939 1. Read about the [http://www.haskell.org/ghc/docs/latest/html/users_guide/options-debugging.html GHC Debugging Options]; the following debugging options are particularly useful: 
     40   * -dshow-passes : shows the compilations phases 
    4041   * -ddump-tc-trace : shows the typechecking status messages inserted by `traceTc` 
    4142   * -ddump-simpl : shows the Core code after simplification 
    4243   * -dppr-debug : makes the debugging dumps more noisy (and useful); among other things, shows kinds for type variables 
     44 1. such debugging options can be added to `make` by passing the argument `EXTRA_HC_OPTS='flags'` 
    4345  
    4446