pipes-text: properly streaming text
New in version 0.0.2.x: The new module Pipes.Prelude.Text exports line-based Text producers and consumers as a drop-in replacement for the String material in Pipes.Prelude and Pipes.Safe.Prelude. They can be used as one uses Pipes.Prelude without reference to the rest of this package. See the caveats in the documentation for that module.
The organization of this package follows the rule:
pipes-text : pipes-bytestring :: text : bytestring
Familiarity with the other three packages should give one an idea what to expect where. The package has three principal modules, Pipes.Text , Pipes.Text.Encoding and Pipes.Text.IO; the division has more or less the significance it has in the text library.
The module Pipes.Text.IO is present as a convenience. Official pipes IO uses Pipes.ByteString together with the bytestring decoding functions in Pipes.Text.Encoding. In particular, the Pipes.Text.IO functions use Text exceptions, while Pipes.Text uses the standard pipes practice of breaking with a failed parse. Thus, for example, the type of decodeUtf8 is
decodeUtf8 :: Monad m => Producer ByteString m r -> Producer Text m (Producer ByteString m r)
where any unparsed bytes are returned.
Pipes.Text.IO and Pipes.Prelude.Text use version 0.11.3 or later of the text library; older versions of text can be used with the flag -fnoio
[Skip to Readme]
| Versions [faq] | 0.0.0.0, 0.0.0.1, 0.0.0.2, 0.0.0.3, 0.0.0.4, 0.0.0.5, 0.0.0.6, 0.0.0.7, 0.0.0.8, 0.0.0.9, 0.0.0.10, 0.0.0.11, 0.0.0.12, 0.0.0.13, 0.0.0.14, 0.0.0.15, 0.0.0.16, 0.0.0.17, 0.0.1.0, 0.0.2.0, 0.0.2.1, 0.0.2.2, 0.0.2.3, 0.0.2.4, 0.0.2.5 |
|---|---|
| Change log | changelog |
| Dependencies | base (==4.*), bytestring (>=0.9.2.1 && <0.11), pipes (>=4.0 && <4.4), pipes-bytestring (>=1.0 && <2.2), pipes-group (>=1.0.0 && <1.1), pipes-parse (>=3.0.0 && <3.1), pipes-safe (>=2.1 && <2.3), streaming-commons (==0.1.*), text (>=0.11.2 && <1.3), transformers (>=0.2.0.0 && <0.6) [details] |
| License | BSD-3-Clause |
| Author | Michael Thompson |
| Maintainer | what_is_it_to_do_anything@yahoo.com |
| Category | Text, Pipes |
| Home page | https://github.com/michaelt/text-pipes |
| Bug tracker | https://github.com/michaelt/text-pipes/issues |
| Source repo | head: git clone https://github.com/michaelt/text-pipes |
| Uploaded | by MichaelThompson at Sat Dec 3 03:59:48 UTC 2016 |
| Distributions | NixOS:0.0.2.5 |
| Downloads | 12442 total (217 in the last 30 days) |
| Rating | (no votes yet) [estimated by rule of succession] |
| Your Rating | |
| Status | Docs uploaded by user Build status unknown [no reports yet] |
Modules
[Index]
Flags
| Name | Description | Default | Type |
|---|---|---|---|
| noio | Use a version of text earlier than 0.11.3 | Disabled | Automatic |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- pipes-text-0.0.2.5.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)