forked from haskell-nix/hnix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hnix.cabal
134 lines (126 loc) · 2.72 KB
/
hnix.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
Name: hnix
Version: 0.3.3
Synopsis: Haskell implementation of the Nix language
Description:
Haskell implementation of the Nix language.
License: BSD3
License-file: LICENSE
Author: John Wiegley
Maintainer: [email protected]
Category: Data, Nix
Build-type: Simple
Cabal-version: >=1.10
Homepage: http://github.com/jwiegley/hnix
Extra-source-files: data/*.nix
Flag Parsec
Description: Use parsec instead of Trifecta
Default: False
Library
Default-language: Haskell2010
Exposed-modules:
Nix.Atoms
Nix.Eval
Nix.Parser
Nix.Expr
Nix.Pretty
Nix.Parser.Operators
Nix.StringOperations
Other-modules:
Nix.Parser.Library
Nix.Expr.Types
Nix.Expr.Types.Annotated
Nix.Expr.Shorthands
Default-extensions:
DataKinds
DeriveDataTypeable
DeriveFunctor
DeriveGeneric
FlexibleContexts
FlexibleInstances
GADTs
KindSignatures
LambdaCase
MultiWayIf
NoImplicitPrelude
OverloadedStrings
PatternGuards
RankNTypes
TupleSections
Build-depends:
base >= 4.9 && < 5
, ansi-wl-pprint
, containers
, deriving-compat >= 0.3 && < 0.4
, text
, transformers
, parsers >= 0.10
, unordered-containers
, data-fix
, deepseq
, semigroups >= 0.18 && < 0.19
if flag(parsec)
Cpp-options: -DUSE_PARSEC
Build-depends: parsec
else
Build-depends: trifecta
ghc-options: -Wall -fno-warn-name-shadowing
Executable hnix
Default-language: Haskell2010
Main-is: Main.hs
Hs-source-dirs: main
Default-extensions:
DataKinds
DeriveDataTypeable
DeriveFunctor
DeriveGeneric
FlexibleContexts
FlexibleInstances
GADTs
KindSignatures
LambdaCase
MultiWayIf
OverloadedStrings
PatternGuards
RankNTypes
TupleSections
Build-depends:
base >= 4.3 && < 5
, hnix
, containers
, ansi-wl-pprint
, data-fix
, deepseq
Ghc-options: -Wall
Test-suite hnix-tests
Type: exitcode-stdio-1.0
Hs-source-dirs: tests
Default-language: Haskell2010
Main-is: Main.hs
Other-modules:
ParserTests
EvalTests
Build-depends:
base >= 4.3 && < 5
, containers
, text
, data-fix
, hnix
, tasty
, tasty-th
, tasty-hunit
Benchmark hnix-benchmarks
Type: exitcode-stdio-1.0
Hs-source-dirs: benchmarks
Default-language: Haskell2010
Main-is: Main.hs
Other-modules:
ParserBench
Build-depends:
base >= 4.3 && < 5
, containers
, text
, hnix
, criterion
source-repository head
type: git
location: git://github.com/jwiegley/hnix.git