reducers 3.11 → 3.12
raw patch · 2 files changed
+3/−3 lines, 2 filesdep ~semigroups
Dependency ranges changed: semigroups
Files
- reducers.cabal +2/−2
- src/Data/Semigroup/Reducer.hs +1/−1
reducers.cabal view
@@ -1,6 +1,6 @@ name: reducers category: Data, Math, Numerical, Semigroups-version: 3.11+version: 3.12 license: BSD3 cabal-version: >= 1.6 license-file: LICENSE@@ -32,7 +32,7 @@ hashable >= 1.1.2.1 && < 1.3, text >= 0.11.1.5 && < 1.3, unordered-containers >= 0.1.4 && < 0.3,- semigroups >= 0.8.3.1 && < 1,+ semigroups >= 0.17 && < 1, semigroupoids >= 4 && < 6 exposed-modules:
src/Data/Semigroup/Reducer.hs view
@@ -118,7 +118,7 @@ instance Semigroup Count where Count a <> Count b = Count (a + b)- times1p n (Count a) = Count $ (fromIntegral n + 1) * a+ stimes n (Count a) = Count $ fromIntegral n * a instance Monoid Count where mempty = Count 0