forked from haskell/haskell-language-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
haskell-language-server.cabal
283 lines (271 loc) · 7.31 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
cabal-version: 2.2
category: Development
name: haskell-language-server
version: 0.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: 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.Cradle
Ide.Logger
Ide.Plugin
Ide.Plugin.Config
Ide.Plugin.Example
Ide.Plugin.Example2
Ide.Plugin.GhcIde
Ide.Plugin.Ormolu
Ide.Plugin.Pragmas
Ide.Plugin.Floskell
Ide.Plugin.Formatter
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
, Cabal
, cabal-helper >= 1.1
, containers
, data-default
, deepseq
, Diff
, directory
, extra
, filepath
, floskell == 0.10.*
, ghc
, ghcide >= 0.1
, gitrev
, hashable
, haskell-lsp == 0.22.*
, hie-bios >= 0.4
, hslogger
, lens
, ormolu ^>= 0.0.5.0
, optparse-simple
, process
, regex-tdfa >= 1.3.1.0
, shake >= 0.17.5
, text
, 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
, aeson
, async
, base16-bytestring
, binary
, bytestring
, cryptohash-sha1
, containers
, data-default
, deepseq
, directory
, extra
, filepath
--------------------------------------------------------------
-- The MIN_GHC_API_VERSION macro relies on MIN_VERSION pragmas
-- which require depending on ghc. So the tests need to depend
-- on ghc if they need to use MIN_GHC_API_VERSION. Maybe a
-- better solution can be found, but this is a quick solution
-- which works for now.
, ghc
--------------------------------------------------------------
, ghc-check >= 0.3.0.1 && < 0.4
, ghc-paths
, ghcide
, gitrev
, hashable
, haskell-lsp
, hie-bios >= 0.4
, haskell-language-server
, hslogger
, optparse-applicative
, 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
test-suite func-test
import: agpl
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
, data-default
, directory
, filepath
, haskell-language-server
, haskell-lsp
, haskell-lsp-types
, hls-test-utils
, hspec-expectations
, lens
, lsp-test >= 0.10.0.0
, tasty
, tasty-ant-xml >= 1.1.6
, tasty-expected-failure
, tasty-hunit
, tasty-rerun
, text
, unordered-containers
hs-source-dirs: test/functional
main-is: Main.hs
other-modules: Command
, Completion
, Deferred
, Definition
, Diagnostic
, 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
library hls-test-utils
import: agpl
hs-source-dirs: test/utils
exposed-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
, text
, unordered-containers
, yaml
ghc-options: -Wall -Wredundant-constraints
if flag(pedantic)
ghc-options: -Werror
default-language: Haskell2010