#6123: occurs check should not apply to type families
----------------------------------------+-----------------------------------
Reporter: dmwit | Owner: simonpj
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler (Type checker) | Version: 7.4.1
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: None/Unknown
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
----------------------------------------+-----------------------------------
Comment(by simonpj@…):
commit 05289c2ac1203a5d5bbe8236d0239946b5093116
{{{
Author: Simon Peyton Jones <[email protected]>
Date: Fri May 25 11:45:53 2012 +0100
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 | 112
++++++++++++++++++-----------------
compiler/typecheck/TcErrors.lhs | 41 ++++++--------
compiler/typecheck/TcInteract.lhs | 5 ++
3 files changed, 80 insertions(+), 78 deletions(-)
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6123#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs