log-domain 0.9.2.1 → 0.9.3
raw patch · 3 files changed
+6/−2 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.markdown +4/−0
- log-domain.cabal +1/−1
- src/Numeric/Log.hs +1/−1
CHANGELOG.markdown view
@@ -1,3 +1,7 @@+0.9.3+-------+* Fixed subtraction again. For real this time.+ 0.9.2.1 ------- * Support `generic-deriving` 1.7
log-domain.cabal view
@@ -1,6 +1,6 @@ name: log-domain category: Numeric-version: 0.9.2.1+version: 0.9.3 license: BSD3 cabal-version: >= 1.8 license-file: LICENSE
src/Numeric/Log.hs view
@@ -215,7 +215,7 @@ {-# INLINE (+) #-} Exp a - Exp b | a == negInf && b == negInf = Exp negInf- | otherwise = Exp (a + log1mexp (a - b))+ | otherwise = Exp (a + log1mexp (b - a)) {-# INLINE (-) #-} signum (Exp a) | a == negInf = 0