]> git.immae.eu Git - github/fretlink/text-pipes.git/blob - README.md
readme
[github/fretlink/text-pipes.git] / README.md
1 text-pipes
2 ==========
3
4 This repo is called `text-pipes`, but the package is named `pipes-text` as one might expect.
5 The two modules it contatins, `Pipes.Text` and `Pipes.Text.Parse`, use materials from [`pipes-text`](https://github.com/ibotty/pipes-text) and
6 otherwise follows the pattern of [`pipes-bytestring`](https://github.com/Gabriel439/Haskell-Pipes-ByteString-Library), adding a few `pipes-prelude`-like operations.
7 The most important function, `decodeUtf8`, written by ibotty, uses the development version of the text package; this package can however be built without it.
8
9 >>> runEffect $ stdinLn >-> P.takeWhile (/= "quit") >-> stdoutLn
10 hi<Return>
11 hi
12 quit<Return>
13 >>> runSafeT $ runEffect $ readFile "README.md" >-> map toUpper >-> hoist lift stdout
14 PIPES-TEXT
15 ==========
16 ...