The modular-arithmetic haskell package