-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpatches-vector.cabal
73 lines (68 loc) · 3.16 KB
/
patches-vector.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
-- Initial edit-script.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/
name: patches-vector
version: 0.1.5.4
synopsis: Patches (diffs) on vectors: composable, mergeable, 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 groupoid, supporting (partial) 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.
license: BSD3
license-file: LICENSE
author: Liam O'Connor
maintainer: [email protected]
copyright: Liam O'Connor, 2015
category: Data
build-type: Simple
cabal-version: >=1.10
homepage: https://github.com/liamoc/patches-vector
source-repository head
type: git
location: https://github.com/liamoc/patches-vector
library
exposed-modules: Data.Patch
, Data.Patch.Internal
build-depends: base >=4.7 && <5
, edit-distance-vector >=1.0 && <1.1
, vector >= 0.10 && < 0.12
, microlens >= 0.2 && < 0.5
default-language: Haskell2010
test-suite doctest-patches-vector
type: exitcode-stdio-1.0
main-is: doctest.hs
build-depends: base >= 4.7 && < 5
, QuickCheck >= 2.7 && < 2.9
, patches-vector
, doctest >= 0.9 && < 0.12
default-language: Haskell2010
test-suite benchmarks-patches-vector
type: exitcode-stdio-1.0
main-is: benchmarks.hs
hs-source-dirs: bm
build-depends: base >= 4.7 && < 5
, QuickCheck >= 2.7 && < 2.9
, patches-vector
, criterion >= 1.1 && < 1.2
, vector >= 0.10 && <0.12
default-language: Haskell2010
test-suite spec-patches-vector
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: test
other-modules: Data.Patch.InternalSpec
, Test.Util
, Test.UtilSpec
build-depends: base >= 4.7 && < 5
, QuickCheck >= 2.7 && < 2.9
, patches-vector
, criterion >= 1.1 && < 1.2
, vector >= 0.10 && <0.12
, hspec >= 2.1 && < 2.3
default-language: Haskell2010