patches-vector 0.1.0.0 → 0.1.0.1
raw patch · 2 files changed
+6/−6 lines, 2 filesdep ~microlensdep ~vectorPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: microlens, vector
API changes (from Hackage documentation)
Files
- Data/Patch/Internal.hs +3/−3
- patches-vector.cabal +3/−3
Data/Patch/Internal.hs view
@@ -62,10 +62,10 @@ -- -- The indices of the 'Edit' s are all based on the /original document/, so: ----- >>> apply (fromList [Insert 0 'a', Insert 1 'b']) (Vector.fromList "123")+-- >>> Vector.toList $ apply (fromList [Insert 0 'a', Insert 1 'b']) (Vector.fromList "123") -- "a1b23" ----- >>> apply (fromList [Insert 0 'a', Insert 0 'b']) (Vector.fromList "123")+-- >>> Vector.toList $ apply (fromList [Insert 0 'a', Insert 0 'b']) (Vector.fromList "123") -- "ab123" -- -- Note that the first 'Insert' didn't introduce an offset for the second.@@ -182,7 +182,7 @@ -- | Apply a patch to a document. ----- Technically, 'apply' is a _monoid morphism_ to the monoid of endomorphisms @Vector a -> Vector a@,+-- Technically, 'apply' is a /monoid morphism/ to the monoid of endomorphisms @Vector a -> Vector a@, -- and that's how we can derive the following two laws: -- -- prop> forAll (historyFrom d 2) $ \[a, b] -> apply b (apply a d) == apply (a <> b) d
patches-vector.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: patches-vector-version: 0.1.0.0+version: 0.1.0.1 synopsis: A library for patches (diffs) on vectors, composable and invertible. description: A patch is a collection of modifications (edits) to be made to a sequence of elements. Commonly found in version control systems, patches are also a simple example of a group, supporting composition@@ -30,8 +30,8 @@ , Data.Patch.Internal -- other-modules: -- other-extensions: - build-depends: base >=4.7 && <4.9, edit-distance-vector >=1.0 && <1.1, vector >= 0.11 && < 0.12- , microlens >= 0.3 && < 0.4+ build-depends: base >=4.7 && <4.9, edit-distance-vector >=1.0 && <1.1, vector >= 0.10 && < 0.12+ , microlens >= 0.2 && < 0.4 -- hs-source-dirs: default-language: Haskell2010