@@ -49,8 +49,7 @@ import qualified Data.Text as T
49
49
import Data.Version
50
50
import Development.IDE.Plugin.Test
51
51
import Development.IDE.Test.Diagnostic
52
- import Development.Shake (CmdOption (Cwd , FileStdout ),
53
- cmd_ )
52
+ import Development.Shake (CmdOption (Cwd ), cmd_ )
54
53
import Experiments.Types
55
54
import Language.LSP.Protocol.Capabilities
56
55
import qualified Language.LSP.Protocol.Lens as L
@@ -128,7 +127,7 @@ experiments =
128
127
(\ docs -> do
129
128
hieYamlUri <- getDocUri " hie.yaml"
130
129
liftIO $ appendFile (fromJust $ uriToFilePath hieYamlUri) " ##\n "
131
- sendNotification SMethod_WorkspaceDidChangeWatchedFiles $ DidChangeWatchedFilesParams $
130
+ sendNotification SMethod_WorkspaceDidChangeWatchedFiles $ DidChangeWatchedFilesParams
132
131
[ FileEvent hieYamlUri FileChangeType_Changed ]
133
132
flip allWithIdentifierPos docs $ \ DocumentPositions {.. } -> isJust <$> getHover doc (fromJust identifierP)
134
133
),
@@ -210,7 +209,7 @@ experiments =
210
209
( \ docs -> do
211
210
hieYamlUri <- getDocUri " hie.yaml"
212
211
liftIO $ appendFile (fromJust $ uriToFilePath hieYamlUri) " ##\n "
213
- sendNotification SMethod_WorkspaceDidChangeWatchedFiles $ DidChangeWatchedFilesParams $
212
+ sendNotification SMethod_WorkspaceDidChangeWatchedFiles $ DidChangeWatchedFilesParams
214
213
[ FileEvent hieYamlUri FileChangeType_Changed ]
215
214
waitForProgressStart
216
215
waitForProgressStart
@@ -777,7 +776,7 @@ setupDocumentContents config =
777
776
findEndOfImports :: [DocumentSymbol ] -> Maybe Position
778
777
findEndOfImports (DocumentSymbol {_kind = SymbolKind_Module , _name = " imports" , _range} : _) =
779
778
Just $ Position (succ $ _line $ _end _range) 4
780
- findEndOfImports [DocumentSymbol {_kind = SymbolKind_File , _children = Just (cc) }] =
779
+ findEndOfImports [DocumentSymbol {_kind = SymbolKind_File , _children = Just cc }] =
781
780
findEndOfImports cc
782
781
findEndOfImports (DocumentSymbol {_range} : _) =
783
782
Just $ _range ^. L. start
0 commit comments