packages feed

Decimal 0.5.1 → 0.5.2

raw patch · 2 files changed

+6/−6 lines, 2 filesdep ~basePVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: base

API changes (from Hackage documentation)

- Data.Decimal: eitherFromRational :: (Integral i) => Rational -> Either String (DecimalRaw i)
+ Data.Decimal: eitherFromRational :: Integral i => Rational -> Either String (DecimalRaw i)
- Data.Decimal: normalizeDecimal :: (Integral i) => DecimalRaw i -> DecimalRaw i
+ Data.Decimal: normalizeDecimal :: Integral i => DecimalRaw i -> DecimalRaw i
- Data.Decimal: roundTo :: (Integral i) => Word8 -> DecimalRaw i -> DecimalRaw i
+ Data.Decimal: roundTo :: Integral i => Word8 -> DecimalRaw i -> DecimalRaw i
- Data.Decimal: roundTo' :: (Integral i) => (Rational -> i) -> Word8 -> DecimalRaw i -> DecimalRaw i
+ Data.Decimal: roundTo' :: Integral i => (Rational -> i) -> Word8 -> DecimalRaw i -> DecimalRaw i

Files

Decimal.cabal view
@@ -1,19 +1,19 @@ Name:                Decimal-Version:             0.5.1+Version:             0.5.2 License:             BSD3 License-file:        LICENSE.txt-Copyright:           Paul Johnson, 2013, 2018.+Copyright:           Paul Johnson, 2013, 2018, 2021. Author:              Paul Johnson Maintainer:          paul@cogito.org.uk Stability:           beta Category:            Math-Cabal-version:       >=1.18+Cabal-version:       1.18 Build-type:          Simple Synopsis:            Decimal numbers with variable precision Description:         A decimal number has an integer mantissa and a negative                     exponent.  The exponent can be interpreted as the number                     of decimal places in the value.-tested-with:         GHC==8.2.2+tested-with:         GHC==8.2.2, GHC==8.10.4 homepage:            https://github.com/PaulJohnson/Haskell-Decimal extra-doc-files:     LICENSE.txt, README.md, changelog.md 
src/Data/Decimal.hs view
@@ -66,8 +66,8 @@ -- will return \"1.500\".  Conversely the "Read" instance will use the decimal -- places to determine the precision. data DecimalRaw i = Decimal {-      decimalPlaces :: ! Word8,-      decimalMantissa :: ! i}+      decimalPlaces :: !Word8,+      decimalMantissa :: !i}                                   deriving (Typeable)