-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathclc-stackage.cabal
173 lines (150 loc) · 3.5 KB
/
clc-stackage.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
cabal-version: 2.4
name: clc-stackage
version: 0.1.0.0
author: Andrew Lelechenko
maintainer: andrew.lelechenko@gmail.com
common common-lang
default-extensions:
ApplicativeDo
DeriveAnyClass
DerivingVia
DuplicateRecordFields
ExplicitNamespaces
ImportQualifiedPost
LambdaCase
NamedFieldPuns
OverloadedRecordDot
OverloadedStrings
StrictData
if os(osx)
cpp-options: -DOSX
if os(windows)
cpp-options: -DWINDOWS
build-depends: base >=4.16.0.0 && <4.21
default-language: GHC2021
library utils
import: common-lang
exposed-modules:
CLC.Stackage.Utils.Exception
CLC.Stackage.Utils.IO
CLC.Stackage.Utils.JSON
CLC.Stackage.Utils.Logging
CLC.Stackage.Utils.OS
CLC.Stackage.Utils.Paths
build-depends:
, aeson >=2.0 && <2.3
, aeson-pretty ^>=0.8.9
, bytestring >=0.10.12.0 && <0.13
, directory ^>=1.3.5.0
, file-io ^>=0.1.0.0
, filepath >=1.4.2.1 && <1.6
, pretty-terminal ^>=0.1.0.0
, text >=1.2.3.2 && <2.2
, time >=1.9.3 && <1.15
hs-source-dirs: src/utils
library parser
import: common-lang
exposed-modules:
CLC.Stackage.Parser
CLC.Stackage.Parser.API
CLC.Stackage.Parser.Data.Response
CLC.Stackage.Parser.Query
build-depends:
, aeson
, bytestring
, containers >=0.6.3.1 && <0.8
, filepath
, http-client >=0.5.9 && <0.8
, http-client-tls ^>=0.3
, http-types ^>=0.12.3
, text
, utils
hs-source-dirs: src/parser
library builder
import: common-lang
exposed-modules:
CLC.Stackage.Builder
CLC.Stackage.Builder.Batch
CLC.Stackage.Builder.Env
CLC.Stackage.Builder.Package
CLC.Stackage.Builder.Process
CLC.Stackage.Builder.Writer
build-depends:
, aeson
, containers
, directory
, filepath
, process ^>=1.6.9.0
, text
, utils
hs-source-dirs: src/builder
library runner
import: common-lang
exposed-modules:
CLC.Stackage.Runner
CLC.Stackage.Runner.Args
CLC.Stackage.Runner.Env
CLC.Stackage.Runner.Report
build-depends:
, aeson
, builder
, containers
, directory
, filepath
, optparse-applicative >=0.16.1.0 && <0.19
, parser
, pretty-terminal
, text
, time
, utils
hs-source-dirs: src/runner
executable clc-stackage
import: common-lang
main-is: Main.hs
build-depends:
, runner
, terminal-size ^>=0.3.4
, text
, time
, utils
hs-source-dirs: ./app
ghc-options: -threaded -with-rtsopts=-N
test-suite unit
import: common-lang
type: exitcode-stdio-1.0
main-is: Main.hs
other-modules:
Unit.CLC.Stackage.Runner.Env
Unit.CLC.Stackage.Runner.Report
Unit.Prelude
build-depends:
, base
, builder
, containers
, filepath
, runner
, tasty >=1.1.0.3 && <1.6
, tasty-golden ^>=2.3.1.1
, tasty-hunit >=0.9 && <0.11
, time
, utils
hs-source-dirs: test/unit
ghc-options: -threaded -with-rtsopts=-N
test-suite functional
import: common-lang
type: exitcode-stdio-1.0
main-is: Main.hs
build-depends:
, base
, builder
, bytestring
, containers
, env-guard ^>=0.2
, filepath
, runner
, tasty
, tasty-golden
, text
, time
, utils
hs-source-dirs: test/functional