TestCoercion should be a superclass of TestEquality
Given that you can implement
testCoercionFromEquality :: TestEquality f => f a -> f b -> Maybe (Coercion a b)
testCoercionFromEquality fa fb = fmap repr $ testEquality fa fb
that shows the superclass relationship.
Are there enough libraries that implement new instances of TestEquality
that adding this superclass would break?
Trac metadata
Trac field | Value |
---|---|
Version | 8.4.3 |
Type | FeatureRequest |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |