dfrac 0.1.1.0 → 0.1.1.1
raw patch · 2 files changed
+3/−3 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Data/DFrac.hs +2/−2
- dfrac.cabal +1/−1
Data/DFrac.hs view
@@ -38,13 +38,13 @@ readListPrec = readListPrecDefault readList = readListDefault instance Show DFrac where- show (DFrac p r) = show i ++ "." ++ tail (show f)+ show (DFrac p r) = show i ++ "." ++ (show f) where n = numerator r d = denominator r i = n `div` d f :: Integer- f = truncate $ (10^p) * (1+(snd $ properFraction r))+ f = truncate $ (10^p) * (snd $ properFraction r) setPrec :: Int -> DFrac -> DFrac setPrec p r = r { places = p }
dfrac.cabal view
@@ -2,7 +2,7 @@ -- see http://haskell.org/cabal/users-guide/ name: dfrac-version: 0.1.1.0+version: 0.1.1.1 synopsis: A package for precise decimal arithmatic using rationals. description: A package for precise decimal arithmatic using rationals. license: MIT