Give a better error message when we try to print a value of unknown type
authorSimon Marlow <simonmar@microsoft.com>
Thu, 26 Apr 2007 08:36:57 +0000 (08:36 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Thu, 26 Apr 2007 08:36:57 +0000 (08:36 +0000)
commit97351f5d70e2d5797a092059cb205089d55dacc6
tree7771e5539078032487b6aecba432cb5308afb4fe
parent3432f617a78f4a0bed641947179b00f1070a9018
Give a better error message when we try to print a value of unknown type

  Stopped at ../Test3.hs:(1,0)-(2,30)
  _result :: [a]
  [../Test3.hs:(1,0)-(2,30)] *Main> _result

  <interactive>:1:0:
      Ambiguous type variable `a' in the constraint:
        `Show a' arising from a use of `print' at <interactive>:1:0-6
      Cannot resolve unkonwn runtime types: a
      Use :print or :force to determine these types
compiler/ghci/Debugger.hs
compiler/main/GHC.hs
compiler/typecheck/TcSimplify.lhs
compiler/typecheck/TcType.lhs