Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class Modular a where
Documentation
class Modular a where Source #
Similar to Discrete
but msucc
and mpred
experience 'wrap-around' for
Bounded
types.
msucc
. mpred
= id
mpred
. msucc
= id
msucc
maxBound
= minBound
mpred
minBound
= maxBound
Instances
Modular Bool Source # | |
Modular Int Source # | |
Modular Int8 Source # | |
Modular Int16 Source # | |
Modular Int32 Source # | |
Modular Int64 Source # | |
Modular Integer Source # | |
Modular Ordering Source # | |
Modular Word Source # | |
Modular Word8 Source # | |
Modular Word16 Source # | |
Modular Word32 Source # | |
Modular Word64 Source # | |
Modular () Source # | |
Modular a => Modular (Maybe a) Source # | |
Integral a => Modular (Ratio a) Source # | |
(Modular a, Modular b) => Modular (Either a b) Source # | |
(Modular a, Modular b) => Modular (a, b) Source # | |
a ~ b => Modular (a :~: b) Source # | |
a ~~ b => Modular (a :~~: b) Source # | |