packages feed

mixed-types-num 0.4.0 → 0.4.0.1

raw patch · 4 files changed

+9/−2 lines, 4 filesPVP: minor bump suggested

API additions: PVP suggests at least a minor version bump

API changes (from Hackage documentation)

+ Numeric.MixedTypes.Eq: instance Numeric.MixedTypes.Eq.CanTestFinite GHC.Types.Int

Files

changelog.md view
@@ -1,5 +1,7 @@ # mixed-types-num change log +* v 0.4.1 2019-04-11+  * fix infinite loop in some conversions * v 0.4.0 2019-04-10   * eliminated dependency on convertible, improving ghcjs compatibility * v 0.3.2 2019-01-08
mixed-types-num.cabal view
@@ -1,5 +1,5 @@ name:           mixed-types-num-version:        0.4.0+version:        0.4.0.1 cabal-version:  >= 1.9.2 build-type:     Simple homepage:       https://github.com/michalkonecny/mixed-types-num
src/Data/Convertible/Utils.hs view
@@ -56,7 +56,9 @@           else return result :: ConvertResult b  ifThenElse :: Bool -> t -> t -> t-ifThenElse b c d = if b then c else d+ifThenElse b c d +   | b = c+   | otherwise = d  {- | Useful for defining conversions that are implemented in terms of other conversions via an intermediary type. Instead of:
src/Numeric/MixedTypes/Eq.hs view
@@ -316,6 +316,9 @@   isNaN = const False instance CanTestNaN Rational where   isNaN = const False+instance CanTestFinite Int where+  isInfinite = const False+  isFinite = const True instance CanTestFinite Integer where   isInfinite = const False   isFinite = const True