semigroups 0.17 → 0.17.0.1
raw patch · 3 files changed
+7/−3 lines, 3 files
Files
- CHANGELOG.markdown +4/−0
- semigroups.cabal +1/−1
- src/Data/Semigroup.hs +2/−2
CHANGELOG.markdown view
@@ -1,3 +1,7 @@+0.17.0.1+--------+* Fixed the `@since` annotations+ 0.17 ---- * Added `groupWith`, `groupAllWith`, `groupWith1`, `groupAllWith1`
semigroups.cabal view
@@ -1,6 +1,6 @@ name: semigroups category: Algebra, Data, Data Structures, Math-version: 0.17+version: 0.17.0.1 license: BSD3 cabal-version: >= 1.10 license-file: LICENSE
src/Data/Semigroup.hs view
@@ -213,7 +213,7 @@ -- By making this a member of the class, idempotent semigroups and monoids can upgrade this to execute in -- /O(1)/ by picking @stimes = stimesIdempotent@ or @stimes = stimesIdempotentMonoid@ respectively. --- -- @since 0.18+ -- @since 0.17 stimes :: Integral b => b -> a -> a stimes y0 x0 | y0 <= 0 = error "stimes: positive multiplier expected"@@ -888,7 +888,7 @@ -- -- This is a suitable definition for an 'mtimes' member of 'Monoid'. ----- @since 0.18+-- @since 0.17 mtimesDefault :: (Integral b, Monoid a) => b -> a -> a mtimesDefault n x | n == 0 = mempty