Improve occurs-check error reporting (fix Trac #6123)
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 25 May 2012 10:45:53 +0000 (11:45 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 25 May 2012 10:45:53 +0000 (11:45 +0100)
commit05289c2ac1203a5d5bbe8236d0239946b5093116
tree1682110c8abdd6da89b16ce8afb1320a0d44861d
parentbc188bbdc506ac898092c87d2db3ff5f96ab4b92
Improve occurs-check error reporting (fix Trac #6123)

We were wrongly reporting (a ~ F a) as an occurs-check error
when F is a type function.
compiler/typecheck/TcCanonical.lhs
compiler/typecheck/TcErrors.lhs
compiler/typecheck/TcInteract.lhs