#3346: Strange and incorrect type error when using rewrite rules with type
families
-----------------------------------------------+----------------------------
Reporter: dreixel | Owner:
Type: bug | Status: closed
Priority: normal | Milestone: 6.12.1
Component: Compiler | Version: 6.11
Severity: normal | Resolution: fixed
Keywords: | Difficulty: Unknown
Testcase: typecheck/should_compile/T3346 | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
-----------------------------------------------+----------------------------
Changes (by simonpj):
* testcase: => typecheck/should_compile/T3346
* status: new => closed
* resolution: => fixed
Comment:
You are right, that is bogus. Fixed by
{{{
Fri Jul 17 16:57:22 BST 2009 [email protected]
* Fix Trac #3346: tcSimplify for LHS of RULES with type equalities
M ./compiler/typecheck/TcSimplify.lhs -2 +12
}}}
There was special handling for constraints on the LHS of a RULE, which
hadn't been updated to account for type families.
Thanks for the report. I've added a regression test
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3346#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