Decimal 0.4.1 → 0.4.2
raw patch · 3 files changed
+9/−6 lines, 3 files
Files
- Decimal.cabal +2/−2
- README.txt +5/−2
- src/Data/Decimal.hs +2/−2
Decimal.cabal view
@@ -1,5 +1,5 @@ Name: Decimal-Version: 0.4.1+Version: 0.4.2 License: BSD3 License-file: LICENSE.txt Copyright: Paul Johnson, 2013@@ -14,7 +14,7 @@ exponent. The exponent can be interpreted as the number of decimal places in the value. Extra-source-files: README.txt-tested-with: GHC==7.4.2+tested-with: GHC==7.6.3 homepage: https://github.com/PaulJohnson/Haskell-Decimal library
README.txt view
@@ -27,8 +27,6 @@ cabal build cabal test -- Version 0.2.1 ------------- @@ -65,5 +63,10 @@ Added "Enum" instance. "decimalConvert" now returns a Maybe value. The old version has been renamed to "unsafeDecimalConvert.++Version 0.4.2+-------------++Removed spurious "Integer" type context.
src/Data/Decimal.hs view
@@ -64,7 +64,7 @@ -- using @Integer@ types, so application developers do not need to worry about -- overflow in the internal algorithms. However the result of each operator -- will be converted to the mantissa type without checking for overflow.-data (Integral i) => DecimalRaw i = Decimal {+data DecimalRaw i = Decimal { decimalPlaces :: ! Word8, decimalMantissa :: ! i} deriving (Typeable)@@ -78,7 +78,7 @@ -- to and from @Integer@. type Decimal = DecimalRaw Integer -instance (Integral i, NFData i) => NFData (DecimalRaw i) where+instance (NFData i) => NFData (DecimalRaw i) where rnf (Decimal _ i) = rnf i instance (Integral i) => Enum (DecimalRaw i) where