mod: Fast type-safe modular arithmetic
Modular arithmetic, promoting moduli to the type level, with an emphasis on performance. Originally part of the arithmoi package.
[Skip to Readme]
Flags
Automatic Flags
| Name | Description | Default |
|---|---|---|
| semirings | Derive semiring instances | Enabled |
| vector | Derive unboxed and primitive vector instances | Enabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- mod-0.2.1.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 0.0.0.0, 0.1.0.0, 0.1.1.0, 0.1.2.0, 0.1.2.1, 0.1.2.2, 0.2.0.0, 0.2.0.1, 0.2.1.0 |
|---|---|
| Change log | changelog.md |
| Dependencies | base (>=4.15 && <5), deepseq (<1.6), ghc-bignum (<1.5), primitive (<0.10), semirings (>=0.5 && <0.8), vector (>=0.12 && <0.14) [details] |
| Tested with | ghc ==9.0.2, ghc ==9.2.8, ghc ==9.4.8, ghc ==9.6.7, ghc ==9.8.4, ghc ==9.10.2, ghc ==9.12.2, ghc ==9.14.1 |
| License | MIT |
| Copyright | 2017-2022 Andrew Lelechenko |
| Author | Andrew Lelechenko <[email protected]> |
| Maintainer | Andrew Lelechenko <[email protected]> |
| Uploaded | by Bodigrim at 2025-09-13T18:02:39Z |
| Category | Math, Number Theory |
| Home page | https://github.com/Bodigrim/mod |
| Bug tracker | https://github.com/Bodigrim/mod/issues |
| Source repo | head: git clone https://github.com/Bodigrim/mod |
| Distributions | Arch:0.2.1.0, LTSHaskell:0.2.1.0, NixOS:0.2.1.0, Stackage:0.2.1.0 |
| Reverse Dependencies | 7 direct, 8586 indirect [details] |
| Downloads | 9077 total (20 in the last 30 days) |
| Rating | 2.0 (votes: 1) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs available [build log] Last success reported on 2025-09-13 [all 1 reports] |