Substantial improvements in RtClosureInspect
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 6 May 2011 14:43:49 +0000 (15:43 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 6 May 2011 14:43:49 +0000 (15:43 +0100)
commit4f8d714962667c219de4e684fe069136a0f78729
tree6b989bca8af7d3944096b642b0fa3136af39eb9a
parent668ac8061c35fd5b72816fd3c4dd4881c46db737
Substantial improvements in RtClosureInspect

The code for constructors in cvReconstrutType and cvObtainTerm
was grotesque.  It's now slightly better.  And it works with
the new coercion representation.

Apart from being simpler I have also made some small behavioural
improvements
  * Improved printing for string values
  * Preserve the print-name when instanting type variables
    (so now they are not always called "t")
  * Suppressed printing of predicate arguments to
    data constructors, unless -dppr-debug is on
compiler/ghci/RtClosureInspect.hs