text-zipper-monad: Monadic interface to the text-zipper package

[ bsd3, library, text ] [ Propose Tags ]

Please see README.md


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.2.0.0
Change log CHANGELOG.md
Dependencies base (>=4.7 && <5), mtl (>=2.2 && <2.3), text-zipper (>=0.5 && <0.6) [details]
License BSD-3-Clause
Copyright BSD3
Author Kwang Yul Seo
Maintainer kwangyul.seo@gmail.com
Category Text
Home page https://github.com/kseo/text-zipper-monad#readme
Source repo head: git clone https://github.com/kseo/text-zipper-monad
Uploaded by kseo at 2016-08-04T01:08:09Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 1218 total (9 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for text-zipper-monad-0.2.0.0

[back to package description]

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))