integer-logarithms: Integer logarithms.

[ algorithms, library, math, mit, number-theory ] [ Propose Tags ]

Math.NumberTheory.Logarithms and Math.NumberTheory.Powers.Integer from the arithmoi package.

Also provides GHC.Integer.Logarithms.Compat and Math.NumberTheory.Power.Natural modules, as well as some additional functions in migrated modules.

[Skip to Readme]


Manual Flags


Replace unsafe array operations with safe ones

Automatic Flags

integer-gmp or integer-simple


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


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

Package maintainers

For package maintainers and hackage trustees


Versions [RSS] 1, 1.0.1, 1.0.2,,, 1.0.3,
Change log
Dependencies array (>=0.3 && <0.6), base (>=4.3 && <4.20), ghc-bignum (>=1.0 && <1.4), ghc-prim (<0.12), integer-gmp (<1.1), integer-simple, invalid-cabal-flag-settings (<0), nats (>=1.1.2 && <1.2) [details]
License MIT
Copyright (c) 2011 Daniel Fischer, 2017-2020 Oleg Grenrus, Andrew Lelechenko
Author Daniel Fischer
Maintainer Oleg Grenrus <>
Revised Revision 5 made by phadej at 2023-10-04T06:22:12Z
Category Math, Algorithms, Number Theory
Home page
Bug tracker
Source repo head: git clone
Uploaded by phadej at 2020-11-01T21:39:08Z
Distributions Arch:, Debian:1.0.3, Fedora:, LTSHaskell:, NixOS:, Stackage:, openSUSE:
Reverse Dependencies 25 direct, 7733 indirect [details]
Downloads 153009 total (287 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for integer-logarithms-

[back to package description]


Build Status

Math.NumberTheory.Logarithms splitted out of arithmoi