This repository has been archived by the owner on Mar 21, 2023. It is now read-only.
forked from pjones/pipes-text
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpipes-text.cabal
101 lines (90 loc) · 3.07 KB
/
pipes-text.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
cabal-version: 2.2
name: pipes-text
version: 1.0.0
synopsis: properly streaming text
description:
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 here. 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.
homepage: https://github.com/pjones/pipes-text
bug-reports: https://github.com/pjones/pipes-text/issues
license: BSD-3-Clause
license-file: LICENSE
author: Michael Thompson
maintainer: Peter Jones <pjones@devalot.com>
category: Text, Pipes
build-type: Simple
extra-source-files:
CHANGES.md
README.md
source-repository head
type: git
location: https://github.com/pjones/pipes-text
flag noio
default: False
description: Use a version of text earlier than 0.11.3
flag maintainer
description: Enable settings for the package maintainer.
manual: True
default: False
common dependencies
build-depends:
, base >=4 && <5
, bytestring >=0.9.2.1 && <0.12
, pipes >=4.0 && <4.4
, pipes-bytestring >=1.0 && <2.2
, pipes-group ^>=1.0.0
, pipes-parse ^>=3.0.0
, pipes-safe >=2.1 && <2.4
, streaming-commons >=0.1 && <0.3
, text >=0.11.2 && <1.3
, transformers >=0.2.0.0 && <0.6
common options
default-language: Haskell2010
other-extensions: RankNTypes
ghc-options:
-Wall -Wno-name-shadowing -Werror=incomplete-record-updates
-Werror=incomplete-uni-patterns -Werror=missing-home-modules
-Widentities -Wmissing-export-lists -Wredundant-constraints
if flag(maintainer)
ghc-options: -Werror
library
import: options, dependencies
exposed-modules:
Pipes.Text
Pipes.Text.Encoding
if !flag(noio)
exposed-modules:
Pipes.Prelude.Text
Pipes.Text.IO
Pipes.Text.Tutorial
build-depends: text >=0.11.3 && <1.3
-- test-suite test
-- import: options, dependencies
-- type: exitcode-stdio-1.0
-- hs-source-dirs: test
-- main-is: Test.hs
-- build-depends:
-- , pipes-text
-- , QuickCheck ^>=2.13
-- , test-framework ^>=0.8
-- , test-framework-quickcheck2 ^>=0.3
--
-- other-modules: Utils