@@ -138,9 +138,9 @@ instance (Ord a, Ord b) => Ord (a, b) where
138 else compare xr yr
138 else compare xr yr
140-- --------------------------------------------------------- [ Negatable Class ]
140-- --------------------------------------------------------- [ Negatable Class ]
141−||| The Negatable class defines a typeclass for which negation works.
141+||| The `Neg` class defines unary negation (-).
142−||| This is used for implementing unary -
143class Neg a where
142class Neg a where
143+ ||| The underlying implementation of unary minus. `-5` desugars to `negate (fromInteger 5)`.
144 negate : a -> a
144 negate : a -> a
146instance Neg Integer where
146instance Neg Integer where