[GHC] #9627: Type error with functional dependencies
GHC
ghc-devs at haskell.org
Tue Sep 23 14:14:48 UTC 2014
#9627: Type error with functional dependencies
-------------------------------------+-------------------------------------
Reporter: augustss | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.8.3
Keywords: | Operating System:
Architecture: Unknown/Multiple | Unknown/Multiple
Difficulty: Unknown | Type of failure:
Blocked By: | None/Unknown
Related Tickets: | Test Case:
| Blocking:
| Differential Revisions:
-------------------------------------+-------------------------------------
The attached file should compile. The types T1, T2, and T3 are all
equivalent types (T1 and T2 normalize to T3), but with foo::T1 and bar::T2
there is a type error.
Rewriting the example using type families instead of FD makes it work.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9627>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list