Finally, I managed to squash an infamous bug in :print
authorPepe Iborra <mnislaih@gmail.com>
Thu, 27 Sep 2007 15:13:00 +0000 (15:13 +0000)
committerPepe Iborra <mnislaih@gmail.com>
Thu, 27 Sep 2007 15:13:00 +0000 (15:13 +0000)
commita07a463449d54855f19c160ed0f0a3853663db5f
treead09d279d48fae664706803f13d408f390551614
parent9efeaae7dd6d720b0f44b0a73ed4881d7eb41034
Finally, I managed to squash an infamous bug in :print

  It turns out the newtype handling code in :print
  was slipping non mutable Tyvars in the types reconstructed.
  The error message eventually produced was rather obscure:

  [src/Tp.hs:75:28-64] *MainTp> :p x
  *** Exception: No match in record selector Var.tcTyVarDetails
  [src/Tp.hs:75:28-64] *MainTp>

  Due to non mutable tyvars, unifyType was failing.
  A well placed assertion in the unifyType code would have made
   my life much easier.
  Which reminds me I should install a -ddump-* system in the
  RTTI subsystem, or future hackers will run away in swearing.

MERGE TO STABLE
compiler/ghci/RtClosureInspect.hs