@@ -157,7 +157,7 @@ mkCompl :: IdeOptions -> CompItem -> CompletionItem
157157mkCompl IdeOptions {.. } CI {compKind,insertText, importedFrom,typeText,label,docs, additionalTextEdits} =
158158 CompletionItem {_label = label,
159159 _kind = kind,
160- _tags = List [] ,
160+ _tags = Nothing ,
161161 _detail = (colon <> ) <$> typeText,
162162 _documentation = documentation,
163163 _deprecated = Nothing ,
@@ -237,27 +237,27 @@ mkNameCompItem origName origMod thingType isInfix docs !imp = CI{..}
237237
238238mkModCompl :: T. Text -> CompletionItem
239239mkModCompl label =
240- CompletionItem label (Just CiModule ) ( List [] ) Nothing
240+ CompletionItem label (Just CiModule ) Nothing Nothing
241241 Nothing Nothing Nothing Nothing Nothing Nothing Nothing
242242 Nothing Nothing Nothing Nothing Nothing
243243
244244mkImportCompl :: T. Text -> T. Text -> CompletionItem
245245mkImportCompl enteredQual label =
246- CompletionItem m (Just CiModule ) ( List [] ) (Just label)
246+ CompletionItem m (Just CiModule ) Nothing (Just label)
247247 Nothing Nothing Nothing Nothing Nothing Nothing Nothing
248248 Nothing Nothing Nothing Nothing Nothing
249249 where
250250 m = fromMaybe " " (T. stripPrefix enteredQual label)
251251
252252mkExtCompl :: T. Text -> CompletionItem
253253mkExtCompl label =
254- CompletionItem label (Just CiKeyword ) ( List [] ) Nothing
254+ CompletionItem label (Just CiKeyword ) Nothing Nothing
255255 Nothing Nothing Nothing Nothing Nothing Nothing Nothing
256256 Nothing Nothing Nothing Nothing Nothing
257257
258258mkPragmaCompl :: T. Text -> T. Text -> CompletionItem
259259mkPragmaCompl label insertText =
260- CompletionItem label (Just CiKeyword ) ( List [] ) Nothing
260+ CompletionItem label (Just CiKeyword ) Nothing Nothing
261261 Nothing Nothing Nothing Nothing Nothing (Just insertText) (Just Snippet )
262262 Nothing Nothing Nothing Nothing Nothing
263263
@@ -272,7 +272,7 @@ extendImportList name lDecl = let
272272 -- use to same start_pos to handle situation where we do not have latest edits due to caching of Rules
273273 new_range = Range new_start_pos new_start_pos
274274 -- we cannot wrap mapM_ inside (mapM_) but we need to wrap (<$)
275- alpha = all isAlphaNum $ filter (\ c -> c /= ' _' ) name
275+ alpha = all isAlphaNum $ filter (/= ' _' ) name
276276 result = if alpha then name ++ " , "
277277 else " (" ++ name ++ " ), "
278278 in Just [TextEdit new_range (T. pack result)]
0 commit comments