Closed ocheron closed 5 years ago
Num
instance makes me uneasy due to fitting too loosely the scalar group (sign, abs, ..). Would it make more sense to either:
The rest looks fine.
Thank you. I think I gave a look to basement numerical classes but had same doubt. Because of the extra operations with polymorphic parameters. Opened haskell-foundation/foundation#529.
Adds missing scalar primitives as well as
Num
instances. Exceptabs
andsignum
are not implemented because there could be multiple conventions for them.