diff options
author | Tobias Geerinckx-Rice <me@tobias.gr> | 2021-07-04 14:05:38 +0200 |
---|---|---|
committer | Tobias Geerinckx-Rice <me@tobias.gr> | 2021-07-04 16:29:14 +0200 |
commit | c098af67b1ccc58ad55f64262c964111f046f923 (patch) | |
tree | 2e00c8a9755c2c69f4b8fecbeeaf4a8a28ff9c4f | |
parent | ddd06ba35dcf93e51261f8fb4c7716c611b0a9ee (diff) | |
download | guix-patches-c098af67b1ccc58ad55f64262c964111f046f923.tar guix-patches-c098af67b1ccc58ad55f64262c964111f046f923.tar.gz |
gnu: Add ghc-text-zipper.
* gnu/packages/haskell-xyz.scm (ghc-text-zipper): New public variable.
-rw-r--r-- | gnu/packages/haskell-xyz.scm | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index 5a18a82f99..e6fe09c282 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -9284,6 +9284,36 @@ footprint of a (boxed) @{ShortText} value is 4 words (2 words when unboxed) plus the length of the UTF-8 encoded payload.") (license license:bsd-3))) +(define-public ghc-text-zipper + (package + (name "ghc-text-zipper") + (version "0.10.1") + (source + (origin + (method url-fetch) + (uri (string-append "https://hackage.haskell.org/package/text-zipper/" + "text-zipper-" version ".tar.gz")) + (sha256 + (base32 "0jxicjp0ak1fyl1n3yspxq6hv9l90zzy75glsv8bc2svsn9ypyls")))) + (build-system haskell-build-system) + (native-inputs + `(("ghc-hspec" ,ghc-hspec) + ("ghc-quickcheck" ,ghc-quickcheck) + ("hspec-discover" ,hspec-discover))) + (inputs + `(("ghc-vector" ,ghc-vector))) + (home-page "https://github.com/jtdaugherty/text-zipper/") + (synopsis "Text editor zipper library") + (description + "This Haskell library provides a two-dimensional zipper data structure for +editing text. The structure represents the body of text and an editing cursor +which can be moved through it, along with a set of editing transformations. + +Text zippers are generalized over the set of data types that might be used to +store lists of characters (e.g., @code{String}, @code{T.Text}, etc.). +Implementations using both of these examples are provided.") + (license license:bsd-3))) + (define-public ghc-doclayout (package (name "ghc-doclayout") |