jstolarek / ghc

Mirror of ghc repository. DO NOT SUBMIT PULL REQUESTS HERE
http://www.haskell.org/ghc/
Other
0 stars 0 forks source link

Small questions about injective type families #64

Closed jstolarek closed 9 years ago

jstolarek commented 10 years ago

#6018

Short-term todos:

Questions:

jstolarek commented 10 years ago
type family C a b 
type instance C Int b = Int
type instance C a Bool = a

Will my algorithm detect correctly that this is not injective? EDIT: Richard's criterion that all tyvars declared on LHS should be on the RHS should deal with this.