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.0.1.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
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 |
---|---|
Change log | changelog.md |
Dependencies | base (>=4.15 && <5), deepseq (<1.6), ghc-bignum (<1.4), 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 |
License | MIT |
Copyright | 2017-2022 Andrew Lelechenko |
Author | Andrew Lelechenko <andrew.lelechenko@gmail.com> |
Maintainer | Andrew Lelechenko <andrew.lelechenko@gmail.com> |
Revised | Revision 1 made by Bodigrim at 2025-07-15T22:49:52Z |
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 |
Uploaded | by Bodigrim at 2023-02-13T20:29:53Z |
Distributions | Arch:0.2.0.1, LTSHaskell:0.2.0.1, NixOS:0.2.0.1, Stackage:0.2.0.1 |
Reverse Dependencies | 7 direct, 8146 indirect [details] |
Downloads | 8917 total (6 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-05-13 [all 1 reports] |