-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlanguage-ninja.cabal
336 lines (317 loc) · 16.1 KB
/
language-ninja.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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
--------------------------------------------------------------------------------
name: language-ninja
version: 0.2.0
stability: Experimental
build-type: Custom
cabal-version: >= 1.10
category: Language
copyright: Copyright 2017 Awake Security
author: Awake Security
maintainer: [email protected]
license: Apache-2.0
license-file: LICENSE.md
homepage: https://github.com/awakesecurity/language-ninja
bug-reports: https://github.com/awakesecurity/language-ninja/issues
category: Build, Language
synopsis: A library for dealing with the Ninja build language.
description: A Haskell library for parsing, pretty-printing, and
compiling the Ninja build language.
The best place to start reading this documentation is
the "Language.Ninja" module.
extra-source-files: README.md
, CHANGELOG.md
tested-with: GHC == 7.10.3
, GHC == 8.0.2
--------------------------------------------------------------------------------
source-repository head
type: git
branch: master
location: https://github.com/awakesecurity/language-ninja.git
source-repository this
type: git
tag: release-0.2.0
location: https://github.com/awakesecurity/language-ninja.git
--------------------------------------------------------------------------------
custom-setup
setup-depends: base >= 4.8 && < 5.0
, Cabal >= 1.24 && < 1.25
--------------------------------------------------------------------------------
library
hs-source-dirs: library
build-depends: base >= 4.8 && < 5.0
, aeson >= 1.0 && < 1.3
, bytestring >= 0.10 && < 0.11
, containers >= 0.5 && < 0.6
, deepseq >= 1.4 && < 1.5
, flow >= 1.0 && < 1.1
, hashable >= 1.2 && < 1.3
, intern >= 0.9 && < 0.10
, megaparsec >= 5.2 && < 5.3
, mtl >= 2.2 && < 2.3
, lens >= 4.15 && < 4.16
, QuickCheck >= 2.9 && < 2.10
, semigroups >= 0.18 && < 0.19
, smallcheck >= 1.1 && < 1.2
, system-filepath >= 0.4 && < 0.5
, text >= 1.2 && < 1.3
, transformers >= 0.4 && < 0.6
, unordered-containers >= 0.2 && < 0.3
, versions >= 3.1.1 && < 3.2
exposed-modules: Language.Ninja
, Language.Ninja.Compile
, Language.Ninja.Lexer
, Language.Ninja.Lexer.Types
, Language.Ninja.Parser
, Language.Ninja.Pretty
, Language.Ninja.Tutorial
, Language.Ninja.AST
, Language.Ninja.AST.Build
, Language.Ninja.AST.Deps
, Language.Ninja.AST.Env
, Language.Ninja.AST.Expr
, Language.Ninja.AST.Ninja
, Language.Ninja.AST.Rule
, Language.Ninja.IR
, Language.Ninja.IR.Build
, Language.Ninja.IR.Meta
, Language.Ninja.IR.Ninja
, Language.Ninja.IR.Pool
, Language.Ninja.IR.Rule
, Language.Ninja.IR.Target
, Language.Ninja.Errors
, Language.Ninja.Errors.Compile
, Language.Ninja.Errors.Parser
, Language.Ninja.Mock
, Language.Ninja.Mock.ReadFile
, Language.Ninja.Misc
, Language.Ninja.Misc.Annotated
, Language.Ninja.Misc.Command
, Language.Ninja.Misc.IText
, Language.Ninja.Misc.Located
, Language.Ninja.Misc.Path
, Language.Ninja.Misc.Positive
default-language: Haskell2010
other-extensions: CPP
, ConstraintKinds
, DeriveDataTypeable
, DeriveFoldable
, DeriveFunctor
, DeriveGeneric
, DeriveTraversable
, FlexibleContexts
, FlexibleInstances
, GADTs
, GeneralizedNewtypeDeriving
, InstanceSigs
, KindSignatures
, LambdaCase
, MultiParamTypeClasses
, OverloadedStrings
, RankNTypes
, RecordWildCards
, ScopedTypeVariables
, UndecidableInstances
if impl(ghc >= 8.0)
ghc-options: -Wcompat -Weverything
-fno-warn-unsafe
-fno-warn-safe
-fno-warn-implicit-prelude
-fno-warn-unused-do-bind
-fno-warn-missed-specialisations
-fno-warn-all-missed-specialisations
-g
else
ghc-options: -Wall -g
--------------------------------------------------------------------------------
test-suite tests
type: exitcode-stdio-1.0
hs-source-dirs: tests
main-is: Tests.hs
other-modules: Tests.Lint
, Tests.Mock
, Tests.Orphans
, Tests.ReferenceLexer
, Tests.ReferenceLexer.Str0
build-depends: language-ninja
, base >= 4.8 && < 5.0
, aeson >= 1.0 && < 1.3
, bytestring >= 0.10 && < 0.11
, containers >= 0.5 && < 0.6
, flow >= 1.0 && < 1.1
, hashable >= 1.2 && < 1.3
, lens >= 4.15 && < 4.16
, monad-mock >= 0.1 && < 0.2
, mtl >= 2.2 && < 2.3
, QuickCheck >= 2.9 && < 2.10
, quickcheck-instances >= 0.3 && < 0.4
, semigroups >= 0.18 && < 0.19
, smallcheck >= 1.1 && < 1.2
, system-filepath >= 0.4 && < 0.5
, tasty >= 0.11 && < 0.12
, tasty-html >= 0.4 && < 0.5
, tasty-hunit >= 0.9 && < 0.10
, tasty-lens >= 0.3 && < 0.4
, tasty-quickcheck >= 0.8 && < 0.9
, tasty-smallcheck >= 0.8 && < 0.9
, text >= 1.2 && < 1.3
, transformers >= 0.4 && < 0.6
, turtle >= 1.3 && < 1.4
, unordered-containers >= 0.2 && < 0.3
, versions >= 3.1.1 && < 3.2
if impl(ghc >= 8.0)
build-depends: ghc >= 7.4 && < 8.4
, haddock-api >= 2.17 && < 2.18
, haddock-library >= 1.4 && < 1.5
default-language: Haskell2010
other-extensions: CPP
, FlexibleContexts
, FlexibleInstances
, GADTs
, LambdaCase
, MultiParamTypeClasses
, OverloadedStrings
, PatternGuards
, RankNTypes
, RecordWildCards
, ScopedTypeVariables
, StandaloneDeriving
, TypeFamilies
, UndecidableInstances
, ViewPatterns
if impl(ghc >= 8.0)
ghc-options: -Wcompat -Weverything
-fno-warn-unsafe
-fno-warn-safe
-fno-warn-implicit-prelude
-fno-warn-unused-do-bind
-fno-warn-missed-specialisations
-fno-warn-all-missed-specialisations
-g -threaded
else
ghc-options: -Wall
-g -threaded
--------------------------------------------------------------------------------
test-suite doctests
if impl(ghc < 8.0)
buildable: False
type: exitcode-stdio-1.0
hs-source-dirs: tests
main-is: DocTests.hs
build-depends: base >= 4.8 && < 5.0
, doctest >= 0.11 && < 0.12
, QuickCheck >= 2.9 && < 2.10
, template-haskell >= 2.10 && < 2.12
default-language: Haskell2010
ghc-options: -Wall -threaded
--------------------------------------------------------------------------------
executable ninja-lex
hs-source-dirs: executables/ninja-lex
main-is: Main.hs
build-depends: language-ninja
, base >= 4.8 && < 5.0
, aeson >= 1.0 && < 1.3
, aeson-pretty >= 0.8 && < 0.9
, flow >= 1.0 && < 1.1
, lens >= 4.15 && < 4.16
, mtl >= 2.2 && < 2.3
, optparse-generic >= 1.1 && < 1.2
-- , prettyprinter >= 1.1 && < 1.2
-- , prettyprinter-ansi-terminal >= 1.1 && < 1.2
, text >= 1.2 && < 1.3
, transformers >= 0.4 && < 0.6
default-language: Haskell2010
other-extensions: DataKinds
, DeriveGeneric
, ExplicitNamespaces
, FlexibleInstances
, GADTSyntax
, OverloadedStrings
, StandaloneDeriving
, TypeOperators
if impl(ghc >= 8.0)
ghc-options: -Wcompat -Weverything
-fno-warn-unsafe
-fno-warn-safe
-fno-warn-implicit-prelude
-fno-warn-unused-do-bind
-fno-warn-missed-specialisations
-fno-warn-all-missed-specialisations
-g -threaded
else
ghc-options: -Wall
-g -threaded
--------------------------------------------------------------------------------
executable ninja-parse
hs-source-dirs: executables/ninja-parse
main-is: Main.hs
build-depends: language-ninja
, base >= 4.8 && < 5.0
, aeson >= 1.0 && < 1.3
, aeson-pretty >= 0.8 && < 0.9
, flow >= 1.0 && < 1.1
, lens >= 4.15 && < 4.16
, mtl >= 2.2 && < 2.3
, optparse-generic >= 1.1 && < 1.2
-- , prettyprinter >= 1.1 && < 1.2
-- , prettyprinter-ansi-terminal >= 1.1 && < 1.2
, text >= 1.2 && < 1.3
, transformers >= 0.4 && < 0.6
default-language: Haskell2010
other-extensions: DataKinds
, DeriveGeneric
, ExplicitNamespaces
, FlexibleInstances
, GADTSyntax
, OverloadedStrings
, StandaloneDeriving
, TypeOperators
if impl(ghc >= 8.0)
ghc-options: -Wcompat -Weverything
-fno-warn-unsafe
-fno-warn-safe
-fno-warn-implicit-prelude
-fno-warn-unused-do-bind
-fno-warn-missed-specialisations
-fno-warn-all-missed-specialisations
-g -threaded
else
ghc-options: -Wall
-g -threaded
--------------------------------------------------------------------------------
executable ninja-compile
hs-source-dirs: executables/ninja-compile
main-is: Main.hs
build-depends: language-ninja
, base >= 4.8 && < 5.0
, aeson >= 1.0 && < 1.3
, aeson-pretty >= 0.8 && < 0.9
, flow >= 1.0 && < 1.1
, lens >= 4.15 && < 4.16
, mtl >= 2.2 && < 2.3
, optparse-generic >= 1.1 && < 1.2
-- , prettyprinter >= 1.1 && < 1.2
-- , prettyprinter-ansi-terminal >= 1.1 && < 1.2
, text >= 1.2 && < 1.3
, transformers >= 0.4 && < 0.6
default-language: Haskell2010
other-extensions: DataKinds
, DeriveGeneric
, ExplicitNamespaces
, FlexibleInstances
, GADTSyntax
, OverloadedStrings
, StandaloneDeriving
, TypeOperators
if impl(ghc >= 8.0)
ghc-options: -Wcompat -Weverything
-fno-warn-unsafe
-fno-warn-safe
-fno-warn-implicit-prelude
-fno-warn-unused-do-bind
-fno-warn-missed-specialisations
-fno-warn-all-missed-specialisations
-g -threaded
else
ghc-options: -Wall
-g -threaded
--------------------------------------------------------------------------------