Skip to content

Commit d201493

Browse files
committed
imports changes
1 parent a953ecb commit d201493

File tree

1 file changed

+7
-5
lines changed
  • plugins/hls-cabal-plugin/src/Ide/Plugin/Cabal

1 file changed

+7
-5
lines changed

Diff for: plugins/hls-cabal-plugin/src/Ide/Plugin/Cabal/Outline.hs

+7-5
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ import Ide.Plugin.Cabal.Completion.Types (ParseCabalFields (..),
2525
cabalPositionToLSPPosition)
2626
import Ide.Plugin.Cabal.Orphans ()
2727
import Ide.Types (PluginMethodHandler)
28-
import qualified Language.LSP.Protocol.Message as LSP
28+
import Language.LSP.Protocol.Message (Method (..))
2929
import qualified Language.LSP.Protocol.Types as LSP
30+
import Language.LSP.Protocol.Types (DocumentSymbol (..))
3031

31-
moduleOutline :: PluginMethodHandler IdeState LSP.Method_TextDocumentDocumentSymbol
32+
33+
moduleOutline :: PluginMethodHandler IdeState Method_TextDocumentDocumentSymbol
3234
moduleOutline ideState _ LSP.DocumentSymbolParams {_textDocument = LSP.TextDocumentIdentifier uri} =
3335
case LSP.uriToFilePath uri of
3436
Just (toNormalizedFilePath' -> fp) -> do
@@ -43,7 +45,7 @@ moduleOutline ideState _ LSP.DocumentSymbolParams {_textDocument = LSP.TextDocum
4345
-- | Creates a DocumentSumbol object for the
4446
-- cabal AST, without displaying fieldLines and
4547
-- displaying Section name and SectionArgs in one line
46-
documentSymbolForField :: Field Position -> Maybe LSP.DocumentSymbol
48+
documentSymbolForField :: Field Position -> Maybe DocumentSymbol
4749
documentSymbolForField (Field (Name pos fieldName) _) =
4850
Just
4951
(defDocumentSymbol range)
@@ -89,8 +91,8 @@ addNameLengthToLSPRange (LSP.Range pos1 (LSP.Position line char)) name =
8991
pos1
9092
(LSP.Position line (char + fromIntegral (T.length name)))
9193

92-
defDocumentSymbol :: LSP.Range -> LSP.DocumentSymbol
93-
defDocumentSymbol range = LSP.DocumentSymbol {..}
94+
defDocumentSymbol :: LSP.Range -> DocumentSymbol
95+
defDocumentSymbol range = DocumentSymbol {..}
9496
where
9597
_detail = Nothing
9698
_deprecated = Nothing

0 commit comments

Comments
 (0)