File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
plugins/hls-change-type-signature-plugin Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,11 @@ source-repository head
22
22
type : git
23
23
location : https://github.com/haskell/haskell-language-server.git
24
24
25
+ common warnings
26
+ ghc-options : -Wall -Wunused-packages
27
+
25
28
library
29
+ import : warnings
26
30
exposed-modules : Ide.Plugin.ChangeTypeSignature
27
31
hs-source-dirs : src
28
32
build-depends :
@@ -34,9 +38,7 @@ library
34
38
, syb
35
39
, text
36
40
, transformers
37
- , unordered-containers
38
41
, containers
39
- ghc-options : -Wall
40
42
default-language : Haskell2010
41
43
default-extensions :
42
44
ConstraintKinds
@@ -50,18 +52,17 @@ library
50
52
51
53
52
54
test-suite tests
55
+ import : warnings
53
56
type : exitcode-stdio-1.0
54
57
default-language : Haskell2010
55
58
hs-source-dirs : test
56
59
main-is : Main.hs
57
- ghc-options : -threaded -rtsopts -with-rtsopts=-N -fno-ignore-asserts -Wall
60
+ ghc-options : -threaded -rtsopts -with-rtsopts=-N -fno-ignore-asserts
58
61
build-depends :
59
62
, base >= 4.12 && < 5
60
63
, filepath
61
64
, hls-change-type-signature-plugin
62
65
, hls-test-utils == 2.6.0.0
63
- , lsp
64
- , QuickCheck
65
66
, regex-tdfa
66
67
, text
67
68
default-extensions :
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ codeActionHandler plId ideState _ CodeActionParams {_textDocument = TextDocument
46
46
getDecls :: MonadIO m => PluginId -> IdeState -> NormalizedFilePath -> ExceptT PluginError m [LHsDecl GhcPs ]
47
47
getDecls (PluginId changeTypeSignatureId) state =
48
48
runActionE (T. unpack changeTypeSignatureId <> " .GetParsedModule" ) state
49
- . ( fmap (hsmodDecls . unLoc . pm_parsed_source) )
49
+ . fmap (hsmodDecls . unLoc . pm_parsed_source)
50
50
. useE GetParsedModule
51
51
52
52
-- | Text representing a Declaration's Name
Original file line number Diff line number Diff line change @@ -95,8 +95,8 @@ goldenChangeSignature fp = goldenWithHaskellDoc def changeTypeSignaturePlugin (f
95
95
96
96
codeActionTest :: FilePath -> Int -> Int -> TestTree
97
97
codeActionTest fp line col = goldenChangeSignature fp $ \ doc -> do
98
- void $ waitForDiagnostics -- code actions are triggered from Diagnostics
99
- void $ waitForAllProgressDone -- apparently some tests need this to get the CodeAction to show up
98
+ void waitForDiagnostics -- code actions are triggered from Diagnostics
99
+ void waitForAllProgressDone -- apparently some tests need this to get the CodeAction to show up
100
100
actions <- getCodeActions doc (pointRange line col)
101
101
foundActions <- findChangeTypeActions actions
102
102
liftIO $ length foundActions @?= 1
You can’t perform that action at this time.
0 commit comments