forked from haskell/haskell-language-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
haskell-language-server.cabal
444 lines (381 loc) · 10.3 KB
/
haskell-language-server.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
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
cabal-version: 2.4
category: Development
name: haskell-language-server
version: 1.1.0.0
synopsis: LSP server for GHC
description:
Please see the README on GitHub at <https://github.com/haskell/haskell-language-server#readme>
homepage: https://github.com/haskell/haskell-language-server#readme
bug-reports: https://github.com/haskell/haskell-language-server/issues
author: The Haskell IDE Team
maintainer: [email protected]
copyright: The Haskell IDE Team
license: Apache-2.0
license-file: LICENSE
build-type: Simple
tested-with: GHC == 8.6.4 || == 8.6.5 || == 8.8.2 || == 8.8.3 || == 8.8.4 || == 8.10.2 || == 8.10.3 || == 8.10.4
extra-source-files:
README.md
ChangeLog.md
include/ghc-api-version.h
test/testdata/**/*.project
test/testdata/**/*.cabal
test/testdata/**/*.yaml
-- this one is not matched by the previous glob
test/testdata/hlint/ignore/.hlint.yaml
test/testdata/**/*.h
test/testdata/**/*.hs
test/testdata/**/*.expected
flag pedantic
description: Enable -Werror
default: False
manual: True
source-repository head
type: git
location: https://github.com/haskell/haskell-language-server
common common-deps
build-depends:
, base >=4.12 && <5
, directory
, extra
, filepath
, text
library
import: common-deps
exposed-modules:
Ide.Arguments
Ide.Main
Ide.Version
other-modules: Paths_haskell_language_server
autogen-modules: Paths_haskell_language_server
hs-source-dirs: src
build-depends:
, async
, base16-bytestring
, bytestring
, containers
, cryptohash-sha1
, data-default
, ghc
, ghcide ^>= 1.2.0.2
, gitrev
, lsp
, hie-bios
, hiedb
, hls-plugin-api ^>= 1.1
, hslogger
, optparse-applicative
, optparse-simple
, process
, hls-graph
, safe-exceptions
, sqlite-simple
, unordered-containers
, aeson-pretty
ghc-options: -Wall -Wredundant-constraints -Wno-name-shadowing -Wno-unticked-promoted-constructors
if flag(pedantic)
ghc-options: -Werror
default-language: Haskell2010
default-extensions: DataKinds, TypeOperators
-- Plugin flags are designed for 'cabal install haskell-language-server':
-- - Packaged plugins should be manual:False
-- - Non packaged plugins and bulk flags should be manual:True
-- - Bulk flags should be default:False
-- - Individual flags should be default:True
flag all-plugins
description: Enable all non formatter plugins
default: False
manual: True
flag all-formatters
description: Enable all fomatters
default: False
manual: True
flag class
description: Enable class plugin
default: True
manual: True
flag haddockComments
description: Enable haddockComments plugin
default: True
manual: True
flag eval
description: Enable eval plugin
default: True
manual: True
flag importLens
description: Enable importLens plugin
default: True
manual: True
flag retrie
description: Enable retrie plugin
default: True
manual: True
flag tactic
description: Enable tactic plugin
default: True
manual: True
flag hlint
description: Enable hlint plugin
default: True
manual: True
flag moduleName
description: Enable moduleName plugin
default: True
manual: True
flag pragmas
description: Enable pragmas plugin
default: True
manual: True
flag splice
description: Enable splice plugin
default: True
manual: True
-- formatters
flag floskell
description: Enable floskell plugin
default: True
manual: True
flag fourmolu
description: Enable fourmolu plugin
default: True
manual: True
flag ormolu
description: Enable ormolu plugin
default: True
manual: True
flag stylishHaskell
description: Enable stylishHaskell plugin
default: True
manual: True
flag brittany
description: Enable brittany plugin
default: True
manual: True
common example-plugins
hs-source-dirs: plugins/default/src
other-modules: Ide.Plugin.Example,
Ide.Plugin.Example2
common class
if flag(class) || flag(all-plugins)
build-depends: hls-class-plugin ^>= 1.0.0.1
cpp-options: -Dclass
common haddockComments
if flag(haddockComments) || flag(all-plugins)
build-depends: hls-haddock-comments-plugin ^>= 1.0.0.1
cpp-options: -DhaddockComments
common eval
if flag(eval) || flag(all-plugins)
build-depends: hls-eval-plugin ^>= 1.1.0.0
cpp-options: -Deval
common importLens
if flag(importLens) || flag(all-plugins)
build-depends: hls-explicit-imports-plugin ^>= 1.0.0.1
cpp-options: -DimportLens
common retrie
if flag(retrie) || flag(all-plugins)
build-depends: hls-retrie-plugin ^>= 1.0.0.1
cpp-options: -Dretrie
common tactic
if flag(tactic) || flag(all-plugins)
build-depends: hls-tactics-plugin ^>= 1.1.0.0
cpp-options: -Dtactic
common hlint
if flag(hlint) || flag(all-plugins)
build-depends: hls-hlint-plugin ^>= 1.0.0.2
cpp-options: -Dhlint
common moduleName
if flag(moduleName) || flag(all-plugins)
hs-source-dirs: plugins/default/src
other-modules: Ide.Plugin.ModuleName
cpp-options: -DmoduleName
common pragmas
if flag(pragmas) || flag(all-plugins)
hs-source-dirs: plugins/default/src
build-depends: fuzzy
other-modules: Ide.Plugin.Pragmas
cpp-options: -Dpragmas
common splice
if flag(splice) || flag(all-plugins)
build-depends: hls-splice-plugin ^>= 1.0.0.1
cpp-options: -Dsplice
-- formatters
common floskell
if flag(floskell) || flag(all-formatters)
hs-source-dirs: plugins/default/src
other-modules: Ide.Plugin.Floskell
build-depends: floskell ^>=0.10
cpp-options: -Dfloskell
common fourmolu
if flag(fourmolu) || flag(all-formatters)
hs-source-dirs: plugins/default/src
other-modules: Ide.Plugin.Fourmolu
build-depends: fourmolu ^>=0.3
cpp-options: -Dfourmolu
common ormolu
if flag(ormolu) || flag(all-formatters)
hs-source-dirs: plugins/default/src
other-modules: Ide.Plugin.Ormolu
build-depends: ormolu ^>=0.1.2
cpp-options: -Dormolu
common stylishHaskell
if flag(stylishHaskell) || flag(all-formatters)
build-depends: hls-stylish-haskell-plugin ^>= 1.0.0.0
cpp-options: -DstylishHaskell
common brittany
if (flag(brittany) || flag(all-formatters))
build-depends: hls-brittany-plugin ^>= 1.0.0.1
cpp-options: -Dbrittany
executable haskell-language-server
import: common-deps
-- plugins
, example-plugins
, class
, haddockComments
, eval
, importLens
, retrie
, tactic
, hlint
, moduleName
, pragmas
, splice
, floskell
, fourmolu
, ormolu
, stylishHaskell
, brittany
main-is: Main.hs
hs-source-dirs: exe
other-modules: Plugins
ghc-options:
-threaded -Wall -Wno-name-shadowing -Wredundant-constraints
-- allow user RTS overrides
-rtsopts
-- disable idle GC
-- increase nursery size
"-with-rtsopts=-I0 -A128M"
-Wno-unticked-promoted-constructors
if flag(pedantic)
ghc-options: -Werror
build-depends:
, aeson
, async
, base16-bytestring
, binary
, bytestring
, containers
, cryptohash-sha1
, deepseq
, ghc
, ghc-boot-th
, ghcide
, hashable
, haskell-language-server
, lsp
, hie-bios
, hiedb
, lens
, regex-tdfa
, hslogger
, optparse-applicative
, hls-plugin-api
, lens
, mtl
, regex-tdfa
, safe-exceptions
, hls-graph
, sqlite-simple
, temporary
, transformers
, unordered-containers
include-dirs: include
default-language: Haskell2010
default-extensions: DataKinds, TypeOperators
executable haskell-language-server-wrapper
import: common-deps
main-is: Wrapper.hs
hs-source-dirs: exe
other-modules: Paths_haskell_language_server
autogen-modules: Paths_haskell_language_server
ghc-options:
-threaded -Wall -Wno-name-shadowing -Wredundant-constraints
-- allow user RTS overrides
-rtsopts
-- disable idle GC
-- increase nursery size
"-with-rtsopts=-I0 -A128M"
if flag(pedantic)
ghc-options: -Werror
build-depends:
, data-default
, ghc
, ghc-paths
, ghcide
, gitrev
, haskell-language-server
, hie-bios
, optparse-applicative
, optparse-simple
, process
default-language: Haskell2010
test-suite func-test
import: common-deps
type: exitcode-stdio-1.0
default-language: Haskell2010
build-tool-depends:
haskell-language-server:haskell-language-server -any,
ghcide:ghcide-test-preprocessor -any
build-depends:
, bytestring
, data-default
, hspec-expectations
, lens
, ghcide
, hls-test-utils ^>= 1.0.0.0
, lsp-types
, aeson
, hls-plugin-api
, lsp-test
, containers
, unordered-containers
hs-source-dirs: test/functional test/utils
main-is: Main.hs
other-modules:
Command
Completion
Config
Deferred
Definition
Diagnostic
Format
FunctionalBadProject
FunctionalCodeAction
FunctionalLiquid
HieBios
Highlight
ModuleName
Progress
Reference
Rename
Symbol
TypeDefinition
Test.Hls.Command
default-extensions: OverloadedStrings
ghc-options:
-Wall -Wno-name-shadowing -threaded -rtsopts -with-rtsopts=-N -Wno-unticked-promoted-constructors
if flag(pedantic)
ghc-options: -Werror -Wredundant-constraints
test-suite wrapper-test
type: exitcode-stdio-1.0
build-tool-depends:
haskell-language-server:haskell-language-server-wrapper -any
default-language: Haskell2010
build-depends:
, base
, directory
, process
, hls-test-utils
, extra
hs-source-dirs: test/wrapper
main-is: Main.hs
ghc-options: -Wall