@@ -14,7 +14,7 @@ module Prelude
14 , Bind, (>>=)
14 , Bind, (>>=)
15 , Monad, return, liftM1, ap
15 , Monad, return, liftM1, ap
16 , Semiring, (+), zero, (*), one
16 , Semiring, (+), zero, (*), one
17− , ModuloSemiRing, (/), mod
17+ , ModuloSemiring, (/), mod
18 , Ring, (-)
18 , Ring, (-)
@@ -219,7 +219,7 @@ module Prelude
220 -- | Semiring with modulo operation and division where
220 -- | Semiring with modulo operation and division where
221 -- | ```a / b * b + (a `mod` b) = a```
221 -- | ```a / b * b + (a `mod` b) = a```
222− class (Semiring a) <= ModuloSemiRing a where
222+ class (Semiring a) <= ModuloSemiring a where
223 (/) :: a -> a -> a
223 (/) :: a -> a -> a
224 mod :: a -> a -> a
224 mod :: a -> a -> a
@@ -232,7 +232,7 @@ module Prelude
233 -- | Ring where every nonzero element has a multiplicative inverse (possibly
233 -- | Ring where every nonzero element has a multiplicative inverse (possibly
234 -- | a non-commutative field) so that ```a `mod` b = zero```
234 -- | a non-commutative field) so that ```a `mod` b = zero```
235− class (Ring a, ModuloSemiRing a) <= DivisionRing a
235+ class (Ring a, ModuloSemiring a) <= DivisionRing a
237 -- | A commutative field
237 -- | A commutative field
238 class (DivisionRing a) <= Num a
238 class (DivisionRing a) <= Num a
@@ -293,7 +293,7 @@ module Prelude
293 instance ringNumber :: Ring Number where
293 instance ringNumber :: Ring Number where
294 (-) = numSub
294 (-) = numSub
296− instance moduloSemiRingNumber :: ModuloSemiRing Number where
296+ instance moduloSemiringNumber :: ModuloSemiring Number where
297 (/) = numDiv
297 (/) = numDiv
298 mod _ _ = 0
298 mod _ _ = 0