mod -is:module

Integer modulus, satisfying
(x `div` y)*y + (x `mod` y) == x
WARNING: This function is partial (because it throws when 0 is passed as the divisor) for all the integer types in base.
integer modulus, satisfying
(x `div` y)*y + (x `mod` y) == x
WARNING: This function is partial (because it throws when 0 is passed as the divisor) for all the integer types in base.
integer modulus, satisfying
(x `div` y)*y + (x `mod` y) == x
Integer modulus, satisfying: (x div y) * y + (x mod y) == x
Modulus.
mod x1 x2 returns x1 - x2 * (x1 div [x2])@. The terms are expected to have type Int.
Fast type-safe modular arithmetic Modular arithmetic, promoting moduli to the type level, with an emphasis on performance. Originally part of the arithmoi package.
Apply the mod operation to two streams, point-wise.
integer modulus, satisfying
(x `div` y)*y + (x `mod` y) == x
Modulus of natural numbers. Mod x 0 is undefined (i.e., it cannot be reduced).
An option modifier. Option modifiers are values that represent a modification of the properties of an option. The type parameter a is the return type of the option, while f is a record containing its properties (e.g. OptionFields for regular options, FlagFields for flags, etc...). An option modifier consists of 3 elements:
  • A field modifier, of the form f a -> f a. These are essentially (compositions of) setters for some of the properties supported by f.
  • An optional default value and function to display it.
  • A property modifier, of the form OptProperties -> OptProperties. This is just like the field modifier, but for properties applicable to any option.
Modifiers are instances of Monoid, and can be composed as such. One rarely needs to deal with modifiers directly, as most of the times it is sufficient to pass them to builders (such as strOption or flag) to create options (see Builder).
pattern synonym for remainder %
pattern synonym for remainder %
Wrapper with a phantom integer for statically checked modular arithmetic.
This represents a modification of the properties of a particular Parser. Combine them using the Monoid instance.
This represents a modification of the properties of a particular Parser. Combine them using the Monoid instance.