Type family not reducing over data family
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
Trac metadata
Trac field | Value |
---|---|
Version | 7.10.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler (Type checker) |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |