File tree 4 files changed +7
-13
lines changed
hls-overloaded-record-dot-plugin
4 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,11 @@ source-repository head
23
23
type : git
24
24
location : https://github.com/haskell/haskell-language-server.git
25
25
26
+ common warnings
27
+ ghc-options : -Wall -Wunused-packages
28
+
26
29
library
30
+ import : warnings
27
31
exposed-modules : Ide.Plugin.ModuleName
28
32
hs-source-dirs : src
29
33
build-depends :
@@ -37,11 +41,11 @@ library
37
41
, lsp
38
42
, text
39
43
, transformers
40
- , unordered-containers
41
44
42
45
default-language : Haskell2010
43
46
44
47
test-suite tests
48
+ import : warnings
45
49
type : exitcode-stdio-1.0
46
50
default-language : Haskell2010
47
51
hs-source-dirs : test
Original file line number Diff line number Diff line change 2
2
{-# LANGUAGE OverloadedStrings #-}
3
3
{-# LANGUAGE PatternSynonyms #-}
4
4
{-# LANGUAGE RecordWildCards #-}
5
- {-# LANGUAGE TypeOperators #-}
6
5
{-# LANGUAGE ViewPatterns #-}
7
6
8
7
{-# OPTIONS_GHC -Wall -Wwarn -fno-warn-type-defaults #-}
@@ -133,7 +132,7 @@ action recorder state uri = do
133
132
| emptyModule ->
134
133
let code = " module " <> bestName <> " where\n "
135
134
in pure [Replace uri (Range (Position 0 0 ) (Position 0 0 )) code code]
136
- _ -> pure $ []
135
+ _ -> pure []
137
136
138
137
-- | Possible module names, as derived by the position of the module in the
139
138
-- source directories. There may be more than one possible name, if the source
Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ tests =
55
55
let edit = TextEdit (mkRange 1 0 1 0 ) " f ="
56
56
_ <- applyEdit doc edit
57
57
newLens <- getCodeLenses doc
58
- txt <- documentContents doc
59
58
liftIO $ newLens @?= oldLens
60
59
closeDoc doc
61
60
]
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ source-repository head
19
19
location : https://github.com/haskell/haskell-language-server
20
20
21
21
common warnings
22
- ghc-options : -Wall
22
+ ghc-options : -Wall -Wunused-packages
23
23
24
24
library
25
25
import : warnings
@@ -35,8 +35,6 @@ library
35
35
, text
36
36
, syb
37
37
, transformers
38
- , ghc-boot-th
39
- , unordered-containers
40
38
, containers
41
39
, deepseq
42
40
hs-source-dirs : src
@@ -51,13 +49,7 @@ test-suite tests
51
49
build-depends :
52
50
, base
53
51
, filepath
54
- , ghcide
55
52
, text
56
53
, hls-overloaded-record-dot-plugin
57
- , hls-plugin-api
58
- , lens
59
- , lsp-test
60
- , lsp-types
61
- , row-types
62
54
, hls-test-utils
63
55
You can’t perform that action at this time.
0 commit comments