-
Notifications
You must be signed in to change notification settings - Fork 88
/
shelly.cabal
233 lines (202 loc) · 5.37 KB
/
shelly.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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
cabal-version: 2.0
Name: shelly
Version: 1.12.1
x-revision: 1
Synopsis: shell-like (systems) programming in Haskell
Description: Shelly provides convenient systems programming in Haskell,
similar in spirit to POSIX shells. Shelly:
.
* is aimed at convenience and getting things done rather than
being a demonstration of elegance,
.
* has detailed and useful error messages,
.
* maintains its own environment, making it thread-safe.
.
Shelly is originally forked from the Shellish package.
.
See the shelly-extra package for additional functionality.
.
An overview is available in the README: <https://github.com/gregwebs/Shelly.hs/blob/master/README.md>
Homepage: https://github.com/gregwebs/Shelly.hs
License: BSD3
License-file: LICENSE
Author: Greg Weber, Petr Rockai
Maintainer: Andreas Abel
Category: Development
Build-type: Simple
tested-with:
GHC == 9.10.1
GHC == 9.8.2
GHC == 9.6.5
GHC == 9.4.8
GHC == 9.2.8
GHC == 9.0.2
GHC == 8.10.7
GHC == 8.8.4
GHC == 8.6.5
GHC == 8.4.4
GHC == 8.2.2
extra-doc-files:
README.md
ChangeLog.md
-- for the sdist of the test suite
extra-source-files:
test/src/*.hs
test/examples/*.sh
test/examples/*.hs
test/data/zshrc
test/data/nonascii.txt
test/data/symlinked_dir/hoge_file
test/data/hello.sh
test/testall
Library
Exposed-modules:
Shelly
Shelly.Lifted
Shelly.Pipe
Shelly.Unix
other-modules:
Shelly.Base
Shelly.Find
Shelly.Directory
hs-source-dirs: src
-- Andreas Abel, 2021-11-20, 2023-02-27:
-- Unless other constraints exist, lower bounds (lb) are chosen
-- as suggested by `cabal gen-bounds` with GHC 8.2, with some fixes:
-- * lb version should exist on hackage
-- * need to respect the ghc-shipped version (e.g. containers).
-- Upper bounds should be omitted in general,
-- unless breakage with major version bumps is expected.
-- Upper bounds can always be added after the fact via (bulk) hackage revisions.
Build-depends:
base >= 4.10 && < 5
-- support GHC >= 8.2
, async >= 2.2.3
, bytestring >= 0.10.8.0
, containers >= 0.5.10.2
, directory >= 1.3.0.0 && < 1.4
, enclosed-exceptions >= 1.0.1
, exceptions >= 0.10.0
, filepath >= 1.4.1.1
, lifted-async >= 0.10.2
, lifted-base >= 0.2.3.2
, monad-control >= 0.3.2 && < 1.1
, mtl >= 2.2.2
, process >= 1.6.1.0
, text >= 1.2.3.1
, time >= 1.3 && < 1.15
, transformers >= 0.5.2.0
, transformers-base >= 0.4.5
, unix-compat >= 0.4.1.1 && < 0.8
ghc-options:
-Wall
-Wcompat
cpp-options:
-DNO_PRELUDE_CATCH
default-language: Haskell2010
default-extensions:
CPP
TypeOperators
source-repository head
type: git
location: https://github.com/gregwebs/Shelly.hs
Flag lifted
Description: run the tests against Shelly.Lifted
Default: False
Test-Suite shelly-testsuite
type: exitcode-stdio-1.0
hs-source-dirs: test/src
main-is: TestMain.hs
other-modules:
CopySpec
EnvSpec
FailureSpec
FindSpec
Help
LiftedSpec
MoveSpec
PipeSpec
PrintCommandsFnSpec
ReadFileSpec
RmSpec
RunSpec
ShowCommandSpec
SshSpec
TestInit
WhichSpec
WriteSpec
ghc-options:
-threaded
-Wall
-Wcompat
-fwarn-tabs
-funbox-strict-fields
-fno-warn-type-defaults
default-language: Haskell2010
default-extensions:
OverloadedStrings
ExtendedDefaultRules
if flag(lifted)
cpp-options: -DLIFTED
build-depends:
shelly
, base
, bytestring
, directory
, filepath
, lifted-async
, mtl
, text
, transformers
, unix-compat
-- additional dependencies
, hspec >= 2.2.2
, hspec-contrib
, HUnit >= 1.2.5.2
default-extensions:
CPP
Flag build-examples
Description: build some example programs
Default: False
Manual: True
-- demonstrated that command output in Shellish was not shown until after the command finished
-- not necessary anymore
Executable drain
hs-source-dirs: test/examples
main-is: drain.hs
default-language: Haskell2010
if flag(build-examples)
buildable: True
build-depends: base
, shelly
, text
default-extensions:
CPP
else
buildable: False
Executable run-handles
hs-source-dirs: test/examples
main-is: run-handles.hs
default-language: Haskell2010
if flag(build-examples)
buildable: True
build-depends: base
, shelly
, text
default-extensions:
CPP
else
buildable: False
Executable Color
hs-source-dirs: test/examples
main-is: color.hs
default-language: Haskell2010
if flag(build-examples)
buildable: True
build-depends: base
, process
, shelly
, text
else
buildable: False