-
Notifications
You must be signed in to change notification settings - Fork 90
/
turtle.cabal
186 lines (173 loc) · 5.44 KB
/
turtle.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
Name: turtle
Version: 1.6.2
Cabal-Version: >=1.10
Build-Type: Simple
License: BSD3
License-File: LICENSE
Copyright: 2015 Gabriella Gonzalez
Author: Gabriella Gonzalez
Maintainer: [email protected]
Bug-Reports: https://github.com/Gabriella439/turtle/issues
Synopsis: Shell programming, Haskell-style
Description: @turtle@ is a reimplementation of the Unix command line environment
in Haskell so that you can use Haskell as both a shell and a scripting
language.
.
Features include:
.
* Batteries included: Command an extended suite of predefined utilities
.
* Interoperability: You can still run external shell commands
.
* Portability: Works on Windows, OS X, and Linux
.
* Exception safety: Safely acquire and release resources
.
* Streaming: Transform or fold command output in constant space
.
* Patterns: Use typed regular expressions that can parse structured values
.
* Formatting: Type-safe @printf@-style text formatting
.
* Modern: Supports @text@
.
Read "Turtle.Tutorial" for a detailed tutorial or "Turtle.Prelude" for a
quick-start guide
.
@turtle@ is designed to be beginner-friendly, but as a result lacks certain
features, like tracing commands. If you feel comfortable using @turtle@
then you should also check out the @Shelly@ library which provides similar
functionality.
Category: System
Tested-With:
GHC == 9.6.1
GHC == 9.4.4
GHC == 9.2.7
GHC == 9.0.2
GHC == 8.10.7
GHC == 8.8.4
GHC == 8.6.5
GHC == 8.4.4
GHC == 8.2.2
GHC == 8.0.2
Extra-Source-Files:
CHANGELOG.md
Source-Repository head
Type: git
Location: https://github.com/Gabriella439/turtle
Flag new-deps
Description: Use new versions of ansi-wl-pprint and optparse-applicative
Manual: False
Default: True
Library
HS-Source-Dirs: src
Build-Depends:
-- 2021-09-07: Turtle.Prelude uses GHC-8.0 features, so base >= 4.9
base >= 4.9 && < 5 ,
async >= 2.0.0.0 && < 2.3 ,
bytestring >= 0.9.1.8 && < 0.13,
clock >= 0.4.1.2 && < 0.9 ,
containers >= 0.5.0.0 && < 0.8 ,
directory >= 1.3.1.0 && < 1.4 ,
exceptions >= 0.4 && < 0.11,
filepath >= 1.4.1.2 && < 1.6 ,
foldl >= 1.1 && < 1.5 ,
hostname < 1.1 ,
managed >= 1.0.3 && < 1.1 ,
process >= 1.0.1.1 && < 1.7 ,
stm < 2.6 ,
streaming-commons < 0.3 ,
temporary < 1.4 ,
text >= 1.0.0 && < 2.2 ,
time < 1.15,
transformers >= 0.2.0.0 && < 0.7 ,
optional-args >= 1.0 && < 2.0 ,
unix-compat >= 0.4 && < 0.8
if os(windows)
Build-Depends: Win32 >= 2.12
else
Build-Depends: unix >= 2.5.1.0 && < 2.9
-- A possible Cabal issue makes it try an old version of ansi-wl-pprint
-- even though a newer would work.
-- See discussion in https://github.com/Gabriella439/turtle/pull/446
if flag(new-deps)
Build-Depends: ansi-wl-pprint >= 1.0 && < 1.1 ,
optparse-applicative >= 0.18 && < 0.19
else
Build-Depends: ansi-wl-pprint >= 0.6 && < 1.0 ,
optparse-applicative >= 0.16 && < 0.18
Exposed-Modules:
Turtle,
Turtle.Bytes,
Turtle.Format,
Turtle.Pattern,
Turtle.Shell,
Turtle.Options,
Turtle.Line,
Turtle.Prelude,
Turtle.Tutorial
Other-Modules:
Turtle.Internal
GHC-Options: -Wall
Default-Language: Haskell2010
test-suite tests
Type: exitcode-stdio-1.0
HS-Source-Dirs: test
Main-Is: Main.hs
GHC-Options: -Wall
Default-Language: Haskell2010
Build-Depends:
base >= 4 && < 5 ,
doctest >= 0.7
test-suite regression-broken-pipe
Type: exitcode-stdio-1.0
HS-Source-Dirs: test
Main-Is: RegressionBrokenPipe.hs
GHC-Options: -Wall -threaded
Default-Language: Haskell2010
Build-Depends:
base >= 4 && < 5,
turtle
test-suite regression-masking-exception
Type: exitcode-stdio-1.0
HS-Source-Dirs: test
Main-Is: RegressionMaskingException.hs
GHC-Options: -Wall -threaded
Default-Language: Haskell2010
Build-Depends:
base >= 4 && < 5,
turtle
test-suite cptree
Type: exitcode-stdio-1.0
HS-Source-Dirs: test
Main-Is: cptree.hs
GHC-Options: -Wall -threaded
Default-Language: Haskell2010
Build-Depends:
base >= 4 && < 5,
temporary,
filepath >= 0.4,
turtle
test-suite system-filepath-tests
Type: exitcode-stdio-1.0
HS-Source-Dirs: test
Main-Is: system-filepath.hs
GHC-Options: -Wall -threaded
Default-Language: Haskell2010
Build-Depends:
base,
filepath,
tasty >=1.4 && <1.6,
tasty-hunit >=0.10 && <0.11,
turtle
benchmark bench
Type: exitcode-stdio-1.0
HS-Source-Dirs: bench
Main-Is: Main.hs
GHC-Options: -O2 -Wall -threaded
Default-Language: Haskell2010
Build-Depends:
base >= 4 && < 5 ,
tasty-bench >= 0.3.1 ,
text < 2.2,
turtle