Open newhoggy opened 2 years ago
For the following data type, deriveGEq fails to generate a GEq instance when using dependent-sum-template-0.1.1.1 with dependent-sum-0.6.2.0.
deriveGEq
GEq
dependent-sum-template-0.1.1.1
dependent-sum-0.6.2.0
The example code is here:
data DefaultUni a where DefaultUniInteger :: DefaultUni (Esc Integer) DefaultUniByteString :: DefaultUni (Esc BS.ByteString) DefaultUniString :: DefaultUni (Esc Text.Text) DefaultUniUnit :: DefaultUni (Esc ()) DefaultUniBool :: DefaultUni (Esc Bool) DefaultUniProtoList :: DefaultUni (Esc []) DefaultUniProtoPair :: DefaultUni (Esc (,)) DefaultUniApply :: !(DefaultUni (Esc f)) -> !(DefaultUni (Esc a)) -> DefaultUni (Esc (f a)) DefaultUniData :: DefaultUni (Esc Data) deriveGEq ''DefaultUni
Adding a lower bound dependent-sum >= 0.7.1.0 fixes the problem for us. Perhaps dependent-sum-template should add a lower bound in a new revision so that the solver picks versions that work together?
dependent-sum >= 0.7.1.0
dependent-sum-template
This is still a problem.
For the following data type,
deriveGEq
fails to generate aGEq
instance when usingdependent-sum-template-0.1.1.1
withdependent-sum-0.6.2.0
.The example code is here:
Adding a lower bound
dependent-sum >= 0.7.1.0
fixes the problem for us. Perhapsdependent-sum-template
should add a lower bound in a new revision so that the solver picks versions that work together?