[Haskell-cafe] Are there arithmetic composition of functions?
Richard O'Keefe
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.
Look at
http://www.haskell.org/haskellwiki/Numeric_Prelude
for a different set of numeric classes that should suit you
better.
More information about the Haskell-Cafe
mailing list