forked from haskell/haskell-language-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
haskell-language-server.cabal
264 lines (233 loc) · 6.04 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
cabal-version: 2.2
category: Development
name: haskell-language-server
version: 0.4.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: alan.zimm@gmail.com
copyright: Alan Zimmerman
license: Apache-2.0
license-file: LICENSE
build-type: Simple
extra-source-files:
README.md
ChangeLog.md
include/ghc-api-version.h
flag agpl
description: Enable AGPL dependencies
default: True
manual: True
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
common common-deps
build-depends:
, base >=4.12 && <5
, directory
, extra
, filepath
, text
library
import: agpl, 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:
, containers
, data-default
, ghc
, ghcide
, gitrev
, haskell-lsp ^>=0.22
, hie-bios >=0.6.1 && <0.8
, hls-plugin-api
, hslogger
, optparse-applicative
, optparse-simple
, process
, unordered-containers
ghc-options: -Wall -Wredundant-constraints -Wno-name-shadowing
if flag(pedantic)
ghc-options: -Werror
default-language: Haskell2010
executable haskell-language-server
import: agpl, common-deps
main-is: Main.hs
hs-source-dirs: exe plugins/default/src
other-modules:
Ide.Plugin.Eval
Ide.Plugin.Example
Ide.Plugin.Example2
Ide.Plugin.Floskell
Ide.Plugin.Fourmolu
Ide.Plugin.ImportLens
Ide.Plugin.Ormolu
Ide.Plugin.Pragmas
Ide.Plugin.Retrie
Ide.Plugin.StylishHaskell
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:
, aeson
, binary
, bytestring
, containers
, deepseq
, floskell ^>=0.10
, fourmolu ^>=0.1
, ghc
, ghc-boot-th
, ghcide >=0.1
, hashable
, haskell-language-server
, haskell-lsp ^>=0.22
, hls-plugin-api
, lens
, ormolu ^>=0.1.2
, regex-tdfa
, retrie >=0.1.1.0
, safe-exceptions
, shake >=0.17.5
, stylish-haskell ^>=0.11
, temporary
, time
, transformers
, unordered-containers
if flag(agpl)
build-depends: brittany
other-modules: Ide.Plugin.Brittany
include-dirs: include
default-language: Haskell2010
executable haskell-language-server-wrapper
import: agpl, 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
-- disable parallel GC
-- increase nursery size
"-with-rtsopts=-I0 -qg -A128M"
if flag(pedantic)
ghc-options: -Werror
build-depends:
, ghc
, ghc-paths
, gitrev
, haskell-language-server
, hie-bios
, optparse-applicative
, optparse-simple
, 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, common-deps
hs-source-dirs: test/utils
other-modules: Test.Hls.Util
build-depends:
, aeson
, blaze-markup
, containers
, data-default
, haskell-lsp
, hie-bios
, hls-plugin-api
, hslogger
, hspec
, hspec-core
, lsp-test >=0.11.0.4
, stm
, tasty-hunit
, temporary
, transformers
, unordered-containers
, yaml
ghc-options: -Wall -Wredundant-constraints
if flag(pedantic)
ghc-options: -Werror
default-language: Haskell2010
test-suite func-test
import: agpl, common-deps, hls-test-utils
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
, lens
, tasty
, tasty-ant-xml >=1.1.6
, tasty-expected-failure
, tasty-golden
, tasty-rerun
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 -any
default-language: Haskell2010
build-depends:
, base
, directory
, process
, tasty
, tasty-ant-xml >=1.1.6
hs-source-dirs: test/wrapper
main-is: Main.hs
ghc-options: -Wall