[GHC] #10713: Type family not reducing over data family
GHC
ghc-devs at haskell.org
Thu Jul 30 23:58:53 UTC 2015
#10713: Type family not reducing over data family
-------------------------------------+-------------------------------------
Reporter: acowley | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.2
(Type checker) |
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Revisions: |
-------------------------------------+-------------------------------------
Given this code,
{{{
type family TEq t s where
TEq t t = 'True
TEq t s = 'False
data family T a
}}}
I expected this GHCi interaction to reduce:
`:kind! TEq (T Int) (T Bool)`
But it does not. It does reduce (to `'True`) if you instead ask,
`:kind! TEq (T Int) (T Int)`
Tested on GHC 7.10.2
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10713>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list