- Fixed build for GHC 9.4+
- replaced
Integral
instance withFractional
instance (see #8 and #14) - added a constraint to ensure the type-level modulus is never 0
- made
inv
returnMaybe
instead of raising an error - misc. refactoring and improvements
- fixed a name clash with GHC.TypeLits for base >= 4.11.0
- exported the
/
type operator withExplicitNamespaces
enabled to support GHC 8. Should be backwards compatible through GHC 7.6.
- added a basic test suite with doctests
- changed
Integral
implementation:quotRem
now uses modular inversion! - added
inv
for modular inversion - added
SomeMod
data type for modular number with unknown modulus - added
modVal
andsomeModVal
helpers similar to ones inGHC.TypeLits