Exact rational multiples of pi (and integer powers of pi) https://github.com/dmcclean/exact-pi/

Latest on Hackage:[email protected]:1

See all snapshots exact-pi appears in

MIT licensed by Douglas McClean
Maintained by [email protected]

Module documentation for

This version can be pinned in stack with:[email protected]:d99de31d4ee2b5a50381acce0d44715e2e8f9b69f3ce295b5754978c46adbdcb,1408


Exact rational multiples of pi (and integer powers of pi) in Haskell

Build Status Hackage Version


  • Bump base dependency.

  • Fixed infinite loop in definition of negate.

  • Added function for computing rational approximations of ExactPi values.

  • Added simpler constraints for converting ExactPi types to terms with the minimal context.

  • Added support for exactly comparing values.

  • Added a type-level representation of ExactPi values.

  • Fixed a bug in recip.
  • Fixed approximation of exact values with a negative exponent for pi.

  • Fixed a missing case in isZero.

  • Added support for converting to exact integers or exact rationals.

  • Removed dependency on groups package, since it appears not to be widely used.
  • Fixed a missing case alternative in recip.

  • Added support for GHC 7.8.
Depends on 2 packages(full list with versions):
Used by 1 package in lts-6.35(full list with versions):