numeric-logarithms: Integral and rational log2 algorithms

[ apache, library, numeric ] [ Propose Tags ]

This provides a user-facing API for the GHC primitive integerLog2#, in the form of functions computing the floor, ceiling, or other rounded form of the base-2 logarithm of Integral or Rational types.


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


  • No Candidates
Versions [RSS]
Change log
Dependencies base (>=4.9 && <4.19), integer-gmp (>=0.5 && <1.2) [details]
License Apache-2.0
Copyright 2018-2021 Google LLC
Author Andrew Pritchard <>
Maintainer Andrew Pritchard <>
Revised Revision 6 made by AndrewPritchard at 2023-03-12T19:39:57Z
Category Numeric
Home page
Bug tracker
Source repo head: git clone
Uploaded by AndrewPritchard at 2021-09-03T20:41:07Z
Downloads 231 total (13 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]