forked from digital-asset/daml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
turtle.cabal
149 lines (143 loc) · 4.63 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
Name: turtle
Version: 1.5.13
Cabal-Version: >=1.10
Build-Type: Simple
License: BSD3
License-File: LICENSE
Copyright: 2015 Gabriel Gonzalez
Author: Gabriel Gonzalez
Maintainer: Gabriel439@gmail.com
Tested-With: GHC == 7.10.2, GHC == 8.0.1
Bug-Reports: https://github.com/Gabriel439/Haskell-Turtle-Library/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@ and @system-filepath@
.
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
Extra-Source-Files:
CHANGELOG.md
Source-Repository head
Type: git
Location: https://github.com/Gabriel439/Haskell-Turtle-Library
Library
HS-Source-Dirs: src
Build-Depends:
base >= 4.6 && < 5 ,
ansi-wl-pprint >= 0.6 && < 0.7 ,
async >= 2.0.0.0 && < 2.3 ,
bytestring >= 0.9.1.8 && < 0.11,
clock >= 0.4.1.2 && < 0.8 ,
containers >= 0.5.0.0 && < 0.7 ,
directory >= 1.0.7 && < 1.4 ,
exceptions >= 0.4 && < 0.11,
foldl >= 1.1 && < 1.5 ,
hostname < 1.1 ,
managed >= 1.0.3 && < 1.1 ,
process >= 1.0.1.1 && < 1.7 ,
semigroups >= 0.5.0 && < 0.19,
system-filepath >= 0.3.1 && < 0.5 ,
system-fileio >= 0.2.1 && < 0.4 ,
stm < 2.6 ,
temporary < 1.4 ,
text < 1.3 ,
time < 1.9 ,
transformers >= 0.2.0.0 && < 0.6 ,
optparse-applicative >= 0.13 && < 0.15,
optional-args >= 1.0 && < 2.0 ,
unix-compat >= 0.4 && < 0.6
if os(windows)
Build-Depends: Win32 >= 2.2.0.1 && < 2.6
else
Build-Depends: unix >= 2.5.1.0 && < 2.8
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 && < 0.17
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,
system-filepath >= 0.4,
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 ,
text < 1.3,
turtle
if impl(ghc < 7.8)
Build-Depends: criterion >= 0.4 && < 1.1.4.0
else
Build-Depends: criterion >= 0.4 && < 1.6