forked from harpocrates/language-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
language-rust.cabal
200 lines (163 loc) · 6.77 KB
/
language-rust.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
name: language-rust
version: 0.2.0.27
synopsis: Parsing and pretty printing of Rust code
description: Language Rust is a library for the analysis of Rust code. It includes a
complete, well tested parser and pretty printer.
homepage: https://github.com/harpocrates/language-rust
license: BSD3
license-file: LICENSE
author: Alec Theriault
maintainer: [email protected]
copyright: (c) 2017-2018 Alec Theriault
stability: provisional
bug-reports: https://github.com/harpocrates/language-rust/issues
category: Language
build-type: Simple
extra-source-files: ChangeLog.md README.md
cabal-version: >=1.10
source-repository head
type: git
location: https://github.com/harpocrates/language-rust.git
flag useByteStrings
description: Use 'ByteString' instead of 'String' as 'InputStream' datatype
default: True
flag enableQuasiquotes
description: Provide the experimental 'Language.Rust.Quote' module
default: True
library
hs-source-dirs: src
ghc-options: -Wall
if impl(ghc >= 8)
ghc-options:
-Wincomplete-patterns
-Wincomplete-uni-patterns
-Wmissing-signatures
build-tools: alex >=3.1, happy >=1.19.8 && < 2.1
-- We restrict to < 2.1, because of
-- https://github.com/haskell/happy/issues/320
default-language: Haskell2010
exposed-modules: Language.Rust.Syntax
Language.Rust.Parser
Language.Rust.Parser.ParseMonad
Language.Rust.Parser.Lexer
Language.Rust.Parser.Internal
Language.Rust.Pretty
Language.Rust.Pretty.Internal
Language.Rust.Data.Position
Language.Rust.Data.Ident
Language.Rust.Data.InputStream
if flag(enableQuasiquotes)
exposed-modules: Language.Rust.Quote
other-modules: Language.Rust.Parser.Literals
Language.Rust.Parser.Reversed
Language.Rust.Pretty.Resolve
Language.Rust.Pretty.Literals
Language.Rust.Pretty.Util
Language.Rust.Syntax.AST
Language.Rust.Syntax.Token
-- Starting in 8.8, `MonadFailDesugaring` is default
if impl(ghc < 8.8)
default-extensions:
MonadFailDesugaring
other-extensions: FlexibleContexts
, FlexibleInstances
, OverloadedStrings
, OverloadedLists
, DeriveFunctor
, DeriveGeneric
, DeriveAnyClass
, DeriveDataTypeable
, TypeFamilies
, TypeOperators
, Rank2Types
, BangPatterns
, CPP
build-depends: base >=4.9 && <5.0
, prettyprinter >=1.0 && <2.0
, transformers >=0.4 && <0.7
, array >=0.5 && <0.6
, deepseq >=1.1 && <1.6
if flag(useByteStrings)
cpp-options: -DUSE_BYTESTRING
build-depends: utf8-string >=1.0
, bytestring >=0.10
if flag(enableQuasiquotes)
build-depends: template-haskell >=2.10
test-suite unit-tests
hs-source-dirs: test/unit-tests
ghc-options: -Wall
main-is: Main.hs
other-modules: LexerTest
ParserTest
PrettyTest
CompleteTest
other-extensions: FlexibleContexts
, OverloadedStrings
, OverloadedLists
, ScopedTypeVariables
, UnicodeSyntax
type: exitcode-stdio-1.0
default-language: Haskell2010
build-depends: HUnit >=1.3.0.0
, test-framework >=0.8.0
, test-framework-hunit >=0.3.0
, language-rust
, base
, prettyprinter
test-suite rustc-tests
hs-source-dirs: test/rustc-tests
ghc-options: -Wall
main-is: Main.hs
other-modules: Diff
DiffUtils
other-extensions: InstanceSigs
, OverloadedStrings
, OverloadedLists
, MultiParamTypeClasses
, UnicodeSyntax
type: exitcode-stdio-1.0
default-language: Haskell2010
build-depends: process >=1.3
, bytestring >=0.10
, aeson >=0.11.0.0
, directory >=1.2.5.0
, filepath >=1.4.0.0
, test-framework >=0.8.0
, vector >=0.10.0
, text >=1.2.0
, unordered-containers >=0.2.7
, time >=1.2.0.0
, language-rust
, base
, prettyprinter >=1.1
benchmark timing-benchmarks
hs-source-dirs: bench/timing-benchmarks
ghc-options: -Wall
main-is: Main.hs
other-extensions: OverloadedStrings
type: exitcode-stdio-1.0
default-language: Haskell2010
build-depends: process >=1.3
, bytestring >=0.10
, aeson >=0.11.0.0
, directory >=1.2.5.0
, filepath >=1.4.0.0
, criterion >=1.1.1.0
, statistics >=0.14.0
, language-rust
, base
benchmark allocation-benchmarks
hs-source-dirs: bench/allocation-benchmarks
ghc-options: -Wall
main-is: Main.hs
other-extensions: OverloadedStrings
type: exitcode-stdio-1.0
default-language: Haskell2010
build-depends: process >=1.3
, bytestring >=0.10
, aeson >=0.11.0.0
, directory >=1.2.5.0
, filepath >=1.4.0.0
, weigh >=0.0.6
, language-rust
, base