-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslinter.cabal
80 lines (75 loc) · 1.87 KB
/
slinter.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
cabal-version: 3.0
name: slinter
version: 0.1.0.0
license: BSD-2-Clause
license-file: LICENSE
author: xieyuschen
maintainer: [email protected]
build-type: Simple
extra-doc-files: CHANGELOG.md
common warnings
ghc-options: -Wall
common common-depends
build-depends:
base ^>=4.17.2.0,
directory,
filepath,
mtl,
transformers,
text,
bytestring,
hspec,
parsec ^>=3.1.16.1,
x-sum-type-boilerplate,
optparse-applicative,
lens
library internallib
import: common-depends
exposed-modules:
Lib.AST.File,
Lib.AST.Function,
Lib.AST.Pragma,
Lib.AST.Model,
Lib.AST.Type,
Lib.AST.Expr,
Lib.AST.Stat,
Lib.AST.Util,
Lib.AST.Oper,
Lib.AST.Definition,
Lib.AST.Parser,
Lib.Command
hs-source-dirs: src
executable slinter
import:
warnings,
common-depends
main-is: Main.hs
build-depends:
internallib
hs-source-dirs: src/App
default-language: Haskell2010
ghc-options: -fforce-recomp -Wall -Werror
test-suite tests
import:
warnings,
common-depends
build-depends:
internallib
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: tests
default-language: Haskell2010
other-modules:
Lib.AST.FileSpec,
Lib.AST.FunctionSpec,
Lib.AST.PragmaSpec,
Lib.AST.TypeSpec,
Lib.AST.ExprSpec,
Lib.AST.StatSpec,
Lib.AST.OperSpec,
Lib.AST.UtilSpec,
Lib.AST.DefinitionSpec,
Lib.TestCommon,
Lib.AST.ParserSpec
build-tool-depends: hspec-discover:hspec-discover == 2.*
ghc-options: -fforce-recomp -Wall -Werror