patches-vector: Patches (diffs) on vectors: composable, mergeable, and invertible.

[ bsd3, data, library ] [ Propose Tags ]

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 and inversion.

This library provides a pleasant interface for working with patches to vectors with any type of element. It includes patch composition, inversion, and application, as well as a way to compute a patch between two vectors using the Wagner-Fischer algorithm.

It also includes a simple implementation of the Operational Transform (OT) function to resolve diverging patches from the same document. This allows for reasonably painless implementation of merge functions, as well as many applications in distributed editing of documents.

Versions [faq] 0.1.0.0, 0.1.0.1, 0.1.1.0, 0.1.2.0, 0.1.3.0, 0.1.4.0, 0.1.4.1, 0.1.4.2, 0.1.4.3, 0.1.4.4, 0.1.5.0, 0.1.5.1, 0.1.5.2, 0.1.5.4
Dependencies base (>=4.7 && <4.9), edit-distance-vector (==1.0.*), microlens (>=0.2 && <0.4), vector (>=0.10 && <0.12) [details]
License BSD-3-Clause
Copyright Liam O'Connor, 2015
Author Liam O'Connor
Maintainer liamoc@cse.unsw.edu.au
Category Data
Home page https://github.com/liamoc/patches-vector
Source repo head: git clone https://github.com/liamoc/patches-vector
Uploaded by LiamOConnorDavis at Thu Oct 8 07:50:47 UTC 2015
Distributions NixOS:0.1.5.4
Downloads 4423 total (225 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2015-10-08 [all 1 reports]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees