Update haskell-lsp to 0.6
[opengl.git] / src / Language / Haskell / LSP / Test / Files.hs
index deb89e84c06a8b1be92d1c8bdda61e957c4debbd..733a94c160ea94634ef34fc0230ca6f65f4bfe80 100644 (file)
@@ -62,7 +62,9 @@ mapUris f event =
     fromServerMsg (NotPublishDiagnostics n) = NotPublishDiagnostics $ swapUri params n
 
     fromServerMsg (RspDocumentSymbols r) =
-      let newSymbols = fmap (fmap (swapUri location)) $ r ^. result
+      let newSymbols = case r ^. result of
+            Just (DSSymbolInformation si) -> Just (DSSymbolInformation (fmap (swapUri location) si))
+            x -> x
       in RspDocumentSymbols $ result .~ newSymbols $ r
 
     fromServerMsg (RspRename r) =