@@ -38,46 +38,27 @@ library
38
38
build-depends :
39
39
base >= 4.7 && < 5
40
40
, aeson
41
- , async
42
41
, binary
43
- , bytestring
44
42
, Cabal
45
43
, cabal-helper >= 1.0
46
44
, containers
47
- , data-default
48
45
, deepseq
49
46
, directory
50
- , extra
51
47
, filepath
52
- , fuzzy
53
48
, ghc
54
49
, ghcide >= 0.1
55
50
, gitrev
56
- , haddock-library
57
51
, hashable
58
52
, haskell-lsp == 0.19. *
59
- , haskell-lsp-types == 0.19. *
60
- , hie-bios
53
+ , hie-bios >= 0.4
61
54
, hslogger
62
- , mtl
63
- , network-uri
64
55
, optparse-simple
65
- , prettyprinter
66
- , prettyprinter-ansi-terminal
67
- , prettyprinter-ansi-terminal
68
56
, process
69
57
, regex-tdfa >= 1.3.1.0
70
- , rope-utf16-splay
71
- , safe-exceptions
72
58
, shake >= 0.17.5
73
- , sorted-list
74
- , stm
75
- , syb
76
59
, text
77
- , time
78
60
, transformers
79
61
, unordered-containers
80
- , utf8-string
81
62
if impl(ghc >= 8.6 )
82
63
build-depends : ormolu >= 0.0.3.1
83
64
@@ -117,16 +98,21 @@ executable haskell-language-server
117
98
base >= 4.7 && < 5
118
99
, containers
119
100
, data-default
120
- , directory
121
101
, extra
122
102
, filepath
103
+ --------------------------------------------------------------
104
+ -- The MIN_GHC_API_VERSION macro relies on MIN_VERSION pragmas
105
+ -- which require depending on ghc. So the tests need to depend
106
+ -- on ghc if they need to use MIN_GHC_API_VERSION. Maybe a
107
+ -- better solution can be found, but this is a quick solution
108
+ -- which works for now.
123
109
, ghc
110
+ --------------------------------------------------------------
124
111
, ghc-paths
125
112
, ghcide
126
113
, gitrev
127
114
, haskell-lsp
128
115
, hie-bios >= 0.4
129
- , hslogger
130
116
, haskell-language-server
131
117
, optparse-applicative
132
118
, shake >= 0.17.5
@@ -162,32 +148,88 @@ executable haskell-language-server-wrapper
162
148
, filepath
163
149
, gitrev
164
150
, ghc
165
- , ghcide
166
151
, ghc-paths
167
- , haskell-lsp
168
152
, hie-bios
169
153
, haskell-language-server
170
154
, optparse-applicative
171
155
, process
172
- , text
173
156
default-language : Haskell2010
174
157
175
158
176
- test-suite test
159
+ test-suite func- test
177
160
type : exitcode-stdio-1.0
178
- main-is : Spec.hs
161
+ default-language : Haskell2010
162
+ build-tool-depends : hspec-discover :hspec-discover
163
+ , haskell-language-server :haskell-language-server
164
+ , cabal-helper :cabal-helper-main
165
+ , ghcide :ghcide-test-preprocessor
166
+
167
+ build-depends :
168
+ base >= 4.7 && < 5
169
+ , aeson
170
+ , data-default
171
+ , hls-test-utils
172
+ , lsp-test >= 0.10.0.0
173
+ , text
174
+ , hspec
179
175
other-modules :
180
- Paths_haskell_language_server
176
+ -- CompletionSpec
177
+ -- , CommandSpec
178
+ -- , DeferredSpec
179
+ -- , DefinitionSpec
180
+ -- , DiagnosticsSpec
181
+ FormatSpec
182
+ -- , FunctionalBadProjectSpec
183
+ -- , FunctionalCodeActionsSpec
184
+ -- , FunctionalLiquidSpec
185
+ , FunctionalSpec
186
+ -- , HaReSpec
187
+ -- , HieBiosSpec
188
+ -- , HighlightSpec
189
+ -- , HoverSpec
190
+ -- , ProgressSpec
191
+ -- , ReferencesSpec
192
+ -- , RenameSpec
193
+ -- , SymbolsSpec
194
+ -- , TypeDefinitionSpec
195
+ , Utils
196
+ , Paths_haskell_language_server
197
+
181
198
hs-source-dirs :
182
- test
199
+ test/functional
183
200
ghc-options :
184
201
-Wall
185
202
-Wredundant-constraints
186
203
-Wno-name-shadowing
187
204
-threaded -rtsopts -with-rtsopts=-N
188
205
if flag(pedantic)
189
206
ghc-options : -Werror
190
- build-depends :
191
- base >= 4.7 && < 5
192
- , haskell-language-server
193
- default-language : Haskell2010
207
+ main-is : Main.hs
208
+ -- other-modules:
209
+ -- Development.IDE.Test
210
+ -- Development.IDE.Test.Runfiles
211
+
212
+ library hls-test-utils
213
+ hs-source-dirs : test/utils
214
+ exposed-modules : TestUtils
215
+ build-depends : base
216
+ , haskell-language-server
217
+ , haskell-lsp
218
+ , hie-bios
219
+ , aeson
220
+ , blaze-markup
221
+ , containers
222
+ , data-default
223
+ , directory
224
+ , filepath
225
+ , hslogger
226
+ , hspec
227
+ , hspec-core
228
+ , stm
229
+ , text
230
+ , unordered-containers
231
+ , yaml
232
+ ghc-options : -Wall -Wredundant-constraints
233
+ if flag(pedantic)
234
+ ghc-options : -Werror
235
+ default-language : Haskell2010
0 commit comments