]>
Commit | Line | Data |
---|---|---|
1 | name: pipes-text | |
2 | version: 0.0.2.5 | |
3 | synopsis: properly streaming text | |
4 | description: /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. | |
5 | . | |
6 | The organization of this package follows the rule: | |
7 | . | |
8 | * @pipes-text : pipes-bytestring :: text : bytestring@ | |
9 | . | |
10 | 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. | |
11 | . | |
12 | 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 | |
13 | . | |
14 | * @decodeUtf8 :: Monad m => Producer ByteString m r -> Producer Text m (Producer ByteString m r)@ | |
15 | . | |
16 | where any unparsed bytes are returned. | |
17 | . | |
18 | @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@ | |
19 | ||
20 | ||
21 | ||
22 | homepage: https://github.com/michaelt/text-pipes | |
23 | bug-reports: https://github.com/michaelt/text-pipes/issues | |
24 | license: BSD3 | |
25 | license-file: LICENSE | |
26 | author: Michael Thompson | |
27 | maintainer: what_is_it_to_do_anything@yahoo.com | |
28 | category: Text, Pipes | |
29 | build-type: Simple | |
30 | cabal-version: >=1.10 | |
31 | ||
32 | extra-source-files: README.md changelog | |
33 | source-repository head | |
34 | type: git | |
35 | location: https://github.com/michaelt/text-pipes | |
36 | ||
37 | flag noio | |
38 | default: False | |
39 | Description: Use a version of text earlier than 0.11.3 | |
40 | ||
41 | library | |
42 | exposed-modules: Pipes.Text, Pipes.Text.Encoding | |
43 | build-depends: base >= 4 && < 5 , | |
44 | bytestring >= 0.9.2.1 && < 0.11, | |
45 | text >= 0.11.2 && < 1.3 , | |
46 | streaming-commons >= 0.1 && < 0.2 , | |
47 | pipes >= 4.0 && < 4.4 , | |
48 | pipes-group >= 1.0.0 && < 1.1 , | |
49 | pipes-parse >= 3.0.0 && < 3.1 , | |
50 | pipes-safe >= 2.1 && < 2.3 , | |
51 | pipes-bytestring >= 1.0 && < 2.2 , | |
52 | transformers >= 0.2.0.0 && < 0.6 | |
53 | ||
54 | other-extensions: RankNTypes | |
55 | default-language: Haskell2010 | |
56 | ||
57 | if !flag(noio) | |
58 | exposed-modules: Pipes.Text.IO, Pipes.Text.Tutorial, Pipes.Prelude.Text | |
59 | build-depends: text >=0.11.3 && < 1.3 |