-
-
Notifications
You must be signed in to change notification settings - Fork 367
/
haskell-language-server.cabal
295 lines (282 loc) · 7.78 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
cabal-version: 2.2
category: Development
name: haskell-language-server
version: 0.2.1.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: Alan Zimmerman
maintainer: [email protected]
copyright: Alan Zimmerman
license: Apache-2.0
license-file: LICENSE
build-type: Simple
extra-source-files:
README.md
ChangeLog.md
flag agpl
Description: Enable AGPL dependencies
Default: True
Manual: False
flag pedantic
Description: Enable -Werror
Default: False
Manual: True
source-repository head
type: git
location: https://github.com/haskell/haskell-language-server
common agpl
if flag(agpl)
cpp-options:
-DAGPL
library
import: agpl
exposed-modules:
Ide.Logger
Ide.Plugin
Ide.Plugin.Config
Ide.Plugin.Eval
Ide.Plugin.Example
Ide.Plugin.Example2
Ide.Plugin.GhcIde
Ide.Plugin.Ormolu
Ide.Plugin.Pragmas
Ide.Plugin.Floskell
Ide.Plugin.Formatter
Ide.Plugin.StylishHaskell
Ide.PluginUtils
Ide.Types
Ide.Version
other-modules:
Paths_haskell_language_server
hs-source-dirs:
src
build-depends:
base >=4.12 && <5
, aeson
, binary
, bytestring
, containers
, data-default
, deepseq
, Diff
, directory
, extra
, filepath
, floskell == 0.10.*
, ghc
, ghcide >= 0.1
, gitrev
, hashable
, haskell-lsp == 0.22.*
, hie-bios ^>= 0.6.1
, hslogger
, lens
, ormolu ^>= 0.1.2
, optparse-simple
, process
, regex-tdfa >= 1.3.1.0
, shake >= 0.17.5
, stylish-haskell == 0.11.*
, temporary
, text
, time
, transformers
, unordered-containers
if os(windows)
build-depends: Win32
else
build-depends: unix
if flag(agpl)
build-depends:
brittany
exposed-modules:
Ide.Plugin.Brittany
ghc-options:
-Wall
-Wredundant-constraints
-Wno-name-shadowing
if flag(pedantic)
ghc-options: -Werror
default-language: Haskell2010
executable haskell-language-server
import: agpl
main-is: Main.hs
hs-source-dirs:
exe
other-modules:
Arguments
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
-- disable parallel GC
-- increase nursery size
"-with-rtsopts=-I0 -qg -A128M"
if flag(pedantic)
ghc-options: -Werror
build-depends:
base >=4.7 && <5
, binary
, containers
, data-default
, directory
, extra
, filepath
, process
, ghc
--------------------------------------------------------------
, ghcide
, gitrev
, hashable
, haskell-lsp
, hie-bios
, haskell-language-server
, hslogger
, optparse-applicative
, safe-exceptions
, shake >= 0.17.5
, text
, time
, unordered-containers
default-language: Haskell2010
executable haskell-language-server-wrapper
import: agpl
main-is: Wrapper.hs
hs-source-dirs:
exe
other-modules:
Arguments
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
-- disable parallel GC
-- increase nursery size
"-with-rtsopts=-I0 -qg -A128M"
if flag(pedantic)
ghc-options: -Werror
build-depends:
base
, directory
, extra
, filepath
, gitrev
, ghc
, ghc-paths
, hie-bios
, haskell-language-server
, optparse-applicative
, process
default-language: Haskell2010
-- This common stanza simulates a previous private lib
-- We removed it due to issues with stack when loading the project using a stack based hie.yaml
-- See https://github.com/haskell/haskell-language-server/issues/114
common hls-test-utils
import: agpl
hs-source-dirs: test/utils
other-modules: Test.Hls.Util
build-depends: base
, haskell-language-server
, haskell-lsp
, hie-bios
, aeson
, blaze-markup
, containers
, data-default
, directory
, filepath
, hslogger
, hspec
, hspec-core
, lsp-test
, stm
, tasty-hunit
, temporary
, text
, transformers
, unordered-containers
, yaml
ghc-options: -Wall -Wredundant-constraints
if flag(pedantic)
ghc-options: -Werror
default-language: Haskell2010
test-suite func-test
import: agpl, hls-test-utils
type: exitcode-stdio-1.0
default-language: Haskell2010
build-tool-depends: haskell-language-server:haskell-language-server
, ghcide:ghcide-test-preprocessor
build-depends: base >=4.7 && <5
, aeson
, bytestring
, data-default
, directory
, filepath
, haskell-language-server
, haskell-lsp
, haskell-lsp-types
, hspec-expectations
, lens
, lsp-test >= 0.10.0.0
, tasty
, tasty-ant-xml >= 1.1.6
, tasty-expected-failure
, tasty-golden
, tasty-hunit
, tasty-rerun
, text
, unordered-containers
hs-source-dirs: test/functional
main-is: Main.hs
other-modules: Command
, Completion
, Deferred
, Definition
, Diagnostic
, Eval
, Format
, FunctionalBadProject
, FunctionalCodeAction
, FunctionalLiquid
, HieBios
, Highlight
, Progress
, Reference
, Rename
, Symbol
, TypeDefinition
ghc-options: -Wall
-Wno-name-shadowing
-threaded -rtsopts -with-rtsopts=-N
if flag(pedantic)
ghc-options: -Werror -Wredundant-constraints
test-suite wrapper-test
import: agpl, hls-test-utils
type: exitcode-stdio-1.0
build-tool-depends: haskell-language-server:haskell-language-server-wrapper
default-language: Haskell2010
build-depends: base == 4.*
, directory
, process
, tasty
, tasty-hunit
, tasty-ant-xml >= 1.1.6
hs-source-dirs: test/wrapper
main-is: Main.hs
ghc-options: -Wall