forked from haskell-nix/hnix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hnix.cabal
120 lines (113 loc) · 2.39 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
Name: hnix
Version: 0.0.1
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
Flag Parsec
Description: Use parsec instead of Trifecta
Default: False
Library
Default-language: Haskell2010
Exposed-modules:
Nix.Eval
Nix.Parser
Nix.Types
Nix.Pretty
Other-modules:
Nix.Parser.Library
Default-extensions:
DataKinds
DeriveDataTypeable
DeriveFunctor
DeriveGeneric
FlexibleContexts
FlexibleInstances
GADTs
KindSignatures
LambdaCase
MultiWayIf
OverloadedStrings
PatternGuards
RankNTypes
TupleSections
Build-depends:
base >= 4.3 && < 5
, ansi-wl-pprint
, containers
, text
, transformers
, parsers >= 0.10
, unordered-containers
, data-fix
if flag(parsec)
Cpp-options: -DUSE_PARSEC
Build-depends: parsec
else
Build-depends: trifecta
ghc-options: -Wall
Executable hnix
Default-language: Haskell2010
Main-is: Nix.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
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
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