Additional type-level operations on GHC.TypeLits.Nat

Version on this page:0.1.3
LTS Haskell 22.16:0.4.6
Stackage Nightly 2024-04-12:0.4.6
Latest on Hackage:0.4.6

See all snapshots ghc-typelits-extra appears in

BSD-2-Clause licensed by Christiaan Baaij
Maintained by [email protected]
This version can be pinned in stack with:ghc-typelits-extra-0.1.3@sha256:3faeb320cfbc229b758ff195703dc883c68c01869334e22c9ab1f1f37a3507d6,2915

Module documentation for 0.1.3


Build Status Hackage Hackage Dependencies

Extra type-level operations on GHC.TypeLits.Nat and a custom solver implemented as a GHC type-checker plugin:

  • GHC.TypeLits.Extra.GCD: a type-level gcd
  • GHC.TypeLits.Extra.CLog: type-level equivalent of the ceiling of integerLogBase#


Changelog for the ghc-typelits-extra package

0.1.3 July 19th 2016

  • Fixes bugs:
    • Rounding error in CLog calculation

0.1.2 July 8th 2016

  • Solve KnownNat constraints over CLog and GCD, i.e., KnownNat (CLog 2 4)

0.1.1 January 20th 2016

  • Compile on GHC 8.0+

0.1 October 21st 2015

  • Initial release