modular-arithmetic 1.0.0.0 → 1.0.0.1
raw patch · 2 files changed
+6/−3 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- modular-arithmetic.cabal +1/−1
- src/Data/Modular.hs +5/−2
modular-arithmetic.cabal view
@@ -2,7 +2,7 @@ -- see http://haskell.org/cabal/users-guide/ name: modular-arithmetic-version: 1.0.0.0+version: 1.0.0.1 synopsis: A type for integers modulo some constant. description: This module provides a convenient type for working with
src/Data/Modular.hs view
@@ -12,8 +12,9 @@ -- (GHC.TypeLits). The TypeOperators extension is needed for the nice -- infix syntax. -- --- These types are created with the type constructor @Mod@--- (or its synonym @/@). To work with integers mod 7, you could write:+-- These types are created with the type constructor 'Mod'+-- (or its synonym '/'). To work with integers mod 7, you could write:+-- -- @ -- Int `Mod` 7 -- Integer `Mod` 7@@ -29,12 +30,14 @@ -- using @unMod@. -- -- Here is a quick example:+-- -- @ -- *Data.Modular> (10 :: ℤ/7) * (11 :: ℤ/7) -- 5 -- @ -- -- It also works correctly with negative numeric literals:+-- -- @ -- *Data.Modular> (-10 :: ℤ/7) * (11 :: ℤ/7) -- 2