HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Package0.5.1.0Data

exact-pi

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

Modules

  • Data.ExactPiThis type is sufficient to exactly express the closure of Q ∪ {π} under multiplication and division.
  • Data.ExactPi.TypeLevelThis kind is sufficient to exactly express the closure of Q⁺ ∪ {π} under multiplication and division.

Description

Provides an exact representation for rational multiples of pi alongside an approximate representation of all reals. Useful for storing and computing with conversion factors between physical units.

Depends on

3 packages

Used by in this set · 1