mono-traversable 1.0.7.0 → 1.0.8.0
raw patch · 5 files changed
+12/−6 lines, 5 filesdep +gaugedep −criterionPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependencies added: gauge
Dependencies removed: criterion
API changes (from Hackage documentation)
- Data.Sequences: singleton :: IsSequence seq => Element seq -> seq
+ Data.Sequences: singleton :: MonoPointed seq => Element seq -> seq
Files
- ChangeLog.md +6/−0
- bench/sorting.hs +1/−1
- mono-traversable.cabal +3/−3
- src/Data/Sequences.hs +1/−1
- test/Spec.hs +1/−1
ChangeLog.md view
@@ -1,3 +1,9 @@+## 1.0.8.0++* Switch to gauge+* Relax constraint on `singleton` to `MonoPointed`+ [#156](https://github.com/snoyberg/mono-traversable/issues/156)+ ## 1.0.7.0 * Add `dropPrefix` and `dropSuffix` to `Data.Sequences` [#139](https://github.com/snoyberg/mono-traversable/issues/139)
bench/sorting.hs view
@@ -1,4 +1,4 @@-import Criterion.Main+import Gauge.Main import Data.Sequences import Data.MonoTraversable import qualified Data.List
mono-traversable.cabal view
@@ -2,10 +2,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: f22319daf40fc1cd315fbeb748296c892ee860915c82dc6ec2407bc44ace929e+-- hash: 8d2ffaa5e0c0f8ffb0bfd37a0d3c6982d81376c1b963a04968c8626b0d8be8a4 name: mono-traversable-version: 1.0.7.0+version: 1.0.8.0 synopsis: Type classes for mapping, folding, and traversing monomorphic containers description: Please see the README at <https://www.stackage.org/package/mono-traversable> category: Data@@ -87,7 +87,7 @@ ghc-options: -Wall -O2 build-depends: base- , criterion+ , gauge , mono-traversable , mwc-random , vector
src/Data/Sequences.hs view
@@ -122,7 +122,7 @@ -- > 'singleton' 'a' :: 'Vector' 'Char' -- 'Data.Vector.fromList' "a" -- @-singleton :: IsSequence seq => Element seq -> seq+singleton :: MonoPointed seq => Element seq -> seq singleton = opoint {-# INLINE singleton #-}
test/Spec.hs view
@@ -398,7 +398,7 @@ -- replace random element or any random value with random new value \x list new -> forAll (elements (x:list)) $ \old -> let seq' = fromListAs list dummy- in replaceElem old new seq' @?= omap (\x -> if x == old then new else x) seq'+ in replaceElem old new seq' @?= omap (\x' -> if x' == old then new else x') seq' #if MIN_VERSION_QuickCheck(2,8,0) prop "replaceSeq old new === ointercalate new . splitSeq old" $ -- replace random subsequence with random new sequence