[Haskell-cafe] Are there arithmetic composition of functions?
ok at cs.otago.ac.nz
Tue Mar 20 02:16:03 CET 2012
One problem with hooking functions into the Haskell numeric
classes is right at the beginning:
class (Eq a, Show a) => Num a
where (+) (-) (*) negate abs signum fromInteger
where functions are for good reason not members of Eq or Show.
for a different set of numeric classes that should suit you
More information about the Haskell-Cafe