Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kseo/text-zipper-monad
Monadic interface to the text-zipper package
https://github.com/kseo/text-zipper-monad
Last synced: 26 days ago
JSON representation
Monadic interface to the text-zipper package
- Host: GitHub
- URL: https://github.com/kseo/text-zipper-monad
- Owner: kseo
- License: bsd-3-clause
- Created: 2016-07-09T11:50:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-30T12:11:17.000Z (about 8 years ago)
- Last Synced: 2024-09-26T03:38:45.834Z (about 1 month ago)
- Language: Haskell
- Homepage: https://hackage.haskell.org/package/text-zipper-monad
- Size: 9.77 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# text-zipper-monad
[![Hackage](https://img.shields.io/hackage/v/text-zipper-monad.svg?style=flat)](https://hackage.haskell.org/package/text-zipper-monad)
[![Build Status](https://travis-ci.org/kseo/text-zipper-monad.svg?branch=master)](https://travis-ci.org/kseo/text-zipper-monad)text-zipper-monad provides a monadic interface to the text-zipper package.
## Usage
```haskell
import Data.Text.Zipper
import qualified Data.Text.Zipper.Edit as ZinsertXAtTheBeginning = 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))
```