text-zipper-monad

Monadic interface to the text-zipper package https://github.com/kseo/text-zipper-monad#readme

Latest on Hackage:0.2.0.0

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed by Kwang Yul Seo

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

Changes

text-zipper-monad 0.2.0.0

  • Bump dependency on text-zipper to 0.5. killToBOL function is added.

text-zipper-monad 0.1.0.0

  • Initial version.
Depends on:
comments powered byDisqus