The text-zipper-monad package

[Tags:bsd3, library, test]

Please see README.md


[Skip to Readme]

Properties

Versions 0.1.0.0, 0.2.0.0
Change log CHANGELOG.md
Dependencies base (>=4.7 && <5), mtl (==2.2.*), text-zipper (==0.5.*) [details]
License BSD3
Copyright BSD3
Author Kwang Yul Seo
Maintainer kwangyul.seo@gmail.com
Category Text
Home page https://github.com/kseo/text-zipper-monad#readme
Source repository head: git clone https://github.com/kseo/text-zipper-monad
Uploaded Thu Aug 4 01:08:09 UTC 2016 by kseo
Distributions NixOS:0.2.0.0
Downloads 70 total (2 in the last 30 days)
Votes
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for text-zipper-monad

Readme for text-zipper-monad-0.2.0.0

text-zipper-monad

Hackage Build Status

text-zipper-monad provides a monadic interface to the text-zipper package.

Usage

import Data.Text.Zipper
import qualified Data.Text.Zipper.Edit as Z

insertXAtTheBeginning = do
  Z.moveCursor (0, 0)
  Z.insertChar 'x'

main = do
  let tz = stringZipper ["abc", "def"] Nothing
      newTz = Z.execEdit insertXAtTheBeginning tz
  putStrLn (unlines (getText newTz))