Closed BebeSparkelSparkel closed 4 years ago
Is there any reason that the following do not have Num instances? Positive Negative NonZero NonNegative NonPositive
What would negate :: Num n => Positive n -> Positive n do?
negate :: Num n => Positive n -> Positive n
When you write properties, unwrap early:
myProp (Positive p) = ... with p ...
Wish the Num class was implemented right.
Is there any reason that the following do not have Num instances? Positive Negative NonZero NonNegative NonPositive