HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Package0.5.0.2Data

exact-pi

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

Modules

2 modules
  • Data.ExactPi13This type is sufficient to exactly express the closure of Q ∪ {π} under multiplication and division.
  • Data.ExactPi.TypeLevel11This 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

2 packages

Used by in this set · 1