@@ -77,7 +77,7 @@ codeLens _lsp ideState CodeLensParams{_textDocument=TextDocumentIdentifier uri}
7777 hDiag <- getHiddenDiagnostics ideState
7878 pure
7979 [ CodeLens _range (Just (Command title "typesignature.add" (Just $ List [toJSON edit]))) Nothing
80− | (dFile, _, dDiag@Diagnostic{_range=_range@Range{..},..}) <- diag ++ hDiag
80+ | (dFile, _, dDiag@Diagnostic{_range=_range}) <- diag ++ hDiag
8181 , dFile == filePath
8282 , (title, tedit) <- suggestSignature False dDiag
8383 , let edit = WorkspaceEdit (Just $ Map.singleton uri $ List tedit) Nothing
@@ -115,7 +115,7 @@ suggestAction ideOptions parsedModule text diag = concat
115115
116116
117117suggestRemoveRedundantImport :: ParsedModule -> Maybe T.Text -> Diagnostic -> [(T.Text, [TextEdit])]
118−suggestRemoveRedundantImport ParsedModule{pm_parsed_source = L _ HsModule{hsmodImports}} contents Diagnostic{_range=_range@Range{..},..}
118+suggestRemoveRedundantImport ParsedModule{pm_parsed_source = L _ HsModule{hsmodImports}} contents Diagnostic{_range=_range,..}
119119-- The qualified import of ‘many’ from module ‘Control.Applicative’ is redundant
120120 | Just [_, bindings] <- matchRegex _message "The( qualified)? import of ‘([^’]*)’ from module [^ ]* is redundant"
121121 , Just (L _ impDecl) <- find (\(L l _) -> srcSpanToRange l == _range ) hsmodImports
@@ -133,7 +133,7 @@ suggestRemoveRedundantImport ParsedModule{pm_parsed_source = L _ HsModule{hsmod
133133 | otherwise = []
134134
135135suggestReplaceIdentifier :: Maybe T.Text -> Diagnostic -> [(T.Text, [TextEdit])]
136−suggestReplaceIdentifier contents Diagnostic{_range=_range@Range{..},..}
136+suggestReplaceIdentifier contents Diagnostic{_range=_range,..}
137137-- File.hs:52:41: error:
138138-- * Variable not in scope:
139139-- suggestAcion :: Maybe T.Text -> Range -> Range
@@ -180,7 +180,7 @@ newDefinitionAction IdeOptions{..} parsedModule Range{_start} name typ
180180
181181
182182suggestFillTypeWildcard :: Diagnostic -> [(T.Text, [TextEdit])]
183−suggestFillTypeWildcard Diagnostic{_range=_range@Range{..},..}
183+suggestFillTypeWildcard Diagnostic{_range=_range,..}
184184-- Foo.hs:3:8: error:
185185-- * Found type wildcard `_' standing for `p -> p1 -> p'
186186
@@ -191,7 +191,7 @@ suggestFillTypeWildcard Diagnostic{_range=_range@Range{..},..}
191191 | otherwise = []
192192
193193suggestAddExtension :: Diagnostic -> [(T.Text, [TextEdit])]
194−suggestAddExtension Diagnostic{_range=_range@Range{..},..}
194+suggestAddExtension Diagnostic{_range=_range,..}
195195-- File.hs:22:8: error:
196196-- Illegal lambda-case (use -XLambdaCase)
197197-- File.hs:22:6: error:
@@ -221,7 +221,7 @@ ghcExtensions :: Map.HashMap T.Text Extension
221221ghcExtensions = Map.fromList . map ( ( T.pack . flagSpecName ) &&& flagSpecFlag ) $ xFlags
222222
223223suggestModuleTypo :: Diagnostic -> [(T.Text, [TextEdit])]
224−suggestModuleTypo Diagnostic{_range=_range@Range{..},..}
224+suggestModuleTypo Diagnostic{_range=_range,..}
225225-- src/Development/IDE/Core/Compile.hs:58:1: error:
226226-- Could not find module ‘Data.Cha’
227227-- Perhaps you meant Data.Char (from base-4.12.0.0)
@@ -233,7 +233,7 @@ suggestModuleTypo Diagnostic{_range=_range@Range{..},..}
233233 | otherwise = []
234234
235235suggestFillHole :: Diagnostic -> [(T.Text, [TextEdit])]
236−suggestFillHole Diagnostic{_range=_range@Range{..},..}
236+suggestFillHole Diagnostic{_range=_range,..}
237237-- ...Development/IDE/LSP/CodeAction.hs:103:9: warning:
238238-- * Found hole: _ :: Int -> String
239239-- * In the expression: _