[project @ 2002-11-28 17:17:41 by simonpj]
authorsimonpj <unknown>
Thu, 28 Nov 2002 17:17:44 +0000 (17:17 +0000)
committersimonpj <unknown>
Thu, 28 Nov 2002 17:17:44 +0000 (17:17 +0000)
commit3c58c25b1b99143c0ac03510423a95bc3bd41aa2
treebb617963534181872754a9ce780bd435767ac7ce
parentb44c6881743abf8f4c3c0612c482ede8b835ac37
[project @ 2002-11-28 17:17:41 by simonpj]
-------------------------------
      A day's work to improve error messages
-------------------------------

1.  Indicate when the cause of the error is likely to be the monomorpism
    restriction, and identify the offending variables.  This involves
    mainly tcSimplifyTop and its error generation.

2.  Produce much better kind error messages.  No more
      ../alonzo/DiGraph.hs:40:
  Couldn't match `* -> *' against `Type bx'
      Expected kind: * -> *
      Inferred kind: Type bx
  When checking that `DiGraph n' is a type

It took a surprisingly long time to get the details right.
ghc/compiler/typecheck/Inst.lhs
ghc/compiler/typecheck/TcBinds.lhs
ghc/compiler/typecheck/TcEnv.lhs
ghc/compiler/typecheck/TcMType.lhs
ghc/compiler/typecheck/TcMonoType.lhs
ghc/compiler/typecheck/TcRnDriver.lhs
ghc/compiler/typecheck/TcRnMonad.lhs
ghc/compiler/typecheck/TcRnTypes.lhs
ghc/compiler/typecheck/TcSimplify.lhs
ghc/compiler/typecheck/TcUnify.lhs