Jikka.Common.ModInt
data ModInt Source #
Defined in Jikka.Common.ModInt
Methods
(==) :: ModInt -> ModInt -> Bool #
(/=) :: ModInt -> ModInt -> Bool #
(+) :: ModInt -> ModInt -> ModInt #
(-) :: ModInt -> ModInt -> ModInt #
(*) :: ModInt -> ModInt -> ModInt #
negate :: ModInt -> ModInt #
abs :: ModInt -> ModInt #
signum :: ModInt -> ModInt #
fromInteger :: Integer -> ModInt #
compare :: ModInt -> ModInt -> Ordering #
(<) :: ModInt -> ModInt -> Bool #
(<=) :: ModInt -> ModInt -> Bool #
(>) :: ModInt -> ModInt -> Bool #
(>=) :: ModInt -> ModInt -> Bool #
max :: ModInt -> ModInt -> ModInt #
min :: ModInt -> ModInt -> ModInt #
readsPrec :: Int -> ReadS ModInt #
readList :: ReadS [ModInt] #
readPrec :: ReadPrec ModInt #
readListPrec :: ReadPrec [ModInt] #
showsPrec :: Int -> ModInt -> ShowS #
show :: ModInt -> String #
showList :: [ModInt] -> ShowS #
toModInt :: Integer -> Integer -> ModInt Source #
fromModInt :: ModInt -> Integer Source #
moduloOfModInt :: ModInt -> Maybe Integer Source #