exact-pi 0.2.1.0 → 0.2.1.1
raw patch · 3 files changed
+7/−2 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- changelog.md +4/−0
- exact-pi.cabal +1/−1
- src/Data/ExactPi.hs +2/−1
changelog.md view
@@ -1,3 +1,7 @@+0.2.1.1 +------- +* Fixed a missing case in isZero. + 0.2.1.0 ------- * Added support for converting to exact integers or exact rationals.
exact-pi.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: exact-pi -version: 0.2.1.0 +version: 0.2.1.1 synopsis: Exact rational multiples of pi (and integer powers of pi) 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.
src/Data/ExactPi.hs view
@@ -47,8 +47,9 @@ -- | Identifies whether an 'ExactPi' is an exact or approximate representation of zero. isZero :: ExactPi -> Bool -isZero (Exact _ 0) = True +isZero (Exact _ 0) = True isZero (Approximate x) = x == (0 :: Double) +isZero _ = False -- | Identifies whether an 'ExactPi' is an exact representation of zero. isExactZero :: ExactPi -> Bool