File tree 2 files changed +8
-8
lines changed
plugins/hls-explicit-fixity-plugin
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,13 @@ source-repository head
19
19
type : git
20
20
location : https://github.com/haskell/haskell-language-server.git
21
21
22
+ common warnings
23
+ ghc-options :
24
+ -Wall -Wunused-packages
25
+ -Wno-name-shadowing -Wno-unticked-promoted-constructors
26
+
22
27
library
28
+ import : warnings
23
29
exposed-modules : Ide.Plugin.ExplicitFixity
24
30
25
31
hs-source-dirs : src
@@ -28,22 +34,17 @@ library
28
34
, containers
29
35
, deepseq
30
36
, extra
31
- , ghc
32
37
, ghcide == 2.6.0.0
33
38
, hashable
34
39
, hls-plugin-api == 2.6.0.0
35
40
, lsp >= 2.3
36
41
, text
37
- , transformers
38
42
39
- ghc-options :
40
- -Wall
41
- -Wno-name-shadowing
42
- -Wno-unticked-promoted-constructors
43
43
default-language : Haskell2010
44
44
default-extensions : DataKinds
45
45
46
46
test-suite tests
47
+ import : warnings
47
48
type : exitcode-stdio-1.0
48
49
default-language : Haskell2010
49
50
hs-source-dirs : test
Original file line number Diff line number Diff line change @@ -56,11 +56,10 @@ hoverTest' docName title pos expected = testCase title $ runSessionWithServer de
56
56
doc <- openDoc docName " haskell"
57
57
waitForKickDone
58
58
h <- getHover doc pos
59
- let expected' = " \n " <> sectionSeparator <> expected
60
59
case h of
61
60
Nothing -> liftIO $ assertFailure " No hover"
62
61
Just (Hover contents _) -> case contents of
63
- InL (MarkupContent mk txt) -> do
62
+ InL (MarkupContent _ txt) -> do
64
63
liftIO
65
64
$ assertBool (" Failed to find `" <> T. unpack expected <> " ` in hover message: " <> T. unpack txt)
66
65
$ expected `T.isInfixOf` txt
You can’t perform that action at this time.
0 commit comments