log-domain 0.10.2 → 0.10.2.1
raw patch · 4 files changed
+14/−4 lines, 4 filesdep ~vectornew-uploaderPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: vector
API changes (from Hackage documentation)
Files
- CHANGELOG.markdown +4/−0
- README.markdown +1/−1
- log-domain.cabal +2/−2
- src/Numeric/Log.hs +7/−1
CHANGELOG.markdown view
@@ -1,3 +1,7 @@+0.10.2.1+--------+* Add `vector` 0.11 support.+ 0.10.2 ------ * Add `generic-deriving` 1.8 support. We also no longer incur a `generic-deriving` dependency at all on GHC 7.6+
README.markdown view
@@ -1,7 +1,7 @@ log === -[](http://travis-ci.org/ekmett/log-domain)+[](https://hackage.haskell.org/package/log-domain) [](http://travis-ci.org/ekmett/log-domain) > What rolls down stairs alone or in pairs > Rolls over your neighbor's dog?
log-domain.cabal view
@@ -1,6 +1,6 @@ name: log-domain category: Numeric-version: 0.10.2+version: 0.10.2.1 license: BSD3 cabal-version: >= 1.8 license-file: LICENSE@@ -58,7 +58,7 @@ semigroupoids >= 4 && < 6, semigroups >= 0.8.4 && < 1, safecopy >= 0.8.1 && < 0.9,- vector >= 0.9 && < 0.11+ vector >= 0.9 && < 0.12 exposed-modules: Numeric.Log Numeric.Log.Signed
src/Numeric/Log.hs view
@@ -210,7 +210,7 @@ -- -- >>> 1 - 3 :: Log Double -- NaN--- +-- -- >>> (3 - 2 :: Log Float) ~= 1 -- True --@@ -365,6 +365,9 @@ {-# INLINE basicUnsafeRead #-} {-# INLINE basicUnsafeWrite #-} {-# INLINE basicClear #-}+#if MIN_VERSION_vector(0,11,0)+ {-# INLINE basicInitialize #-}+#endif {-# INLINE basicSet #-} {-# INLINE basicUnsafeCopy #-} {-# INLINE basicUnsafeGrow #-}@@ -376,6 +379,9 @@ basicUnsafeRead (MV_Log v) i = Exp `liftM` M.basicUnsafeRead v i basicUnsafeWrite (MV_Log v) i (Exp x) = M.basicUnsafeWrite v i x basicClear (MV_Log v) = M.basicClear v+#if MIN_VERSION_vector(0,11,0)+ basicInitialize (MV_Log v) = M.basicInitialize v+#endif basicSet (MV_Log v) (Exp x) = M.basicSet v x basicUnsafeCopy (MV_Log v1) (MV_Log v2) = M.basicUnsafeCopy v1 v2 basicUnsafeGrow (MV_Log v) n = MV_Log `liftM` M.basicUnsafeGrow v n