Skip to content

Commit 9b57029

Browse files
committed
Outline test Ambiguous occurrence change
1 parent 52ff9c1 commit 9b57029

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

plugins/hls-cabal-plugin/test/Outline.hs

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module Outline (
66
) where
77

88
import qualified Ide.Plugin.Cabal.Outline as Outline
9+
import Language.LSP.Protocol.Types ()
910
import qualified Language.LSP.Protocol.Types as LSP
1011
import Test.Hls
1112
import Utils
@@ -41,30 +42,30 @@ outlineTests =
4142
where
4243
fieldDocumentSymbol = (Outline.defDocumentSymbol (LSP.Range {_start = LSP.Position {_line = 0, _character = 0},
4344
_end = LSP.Position {_line = 0, _character = 8}}))
44-
{ LSP._name = "homepage",
45-
LSP._kind = LSP.SymbolKind_Field,
46-
LSP._children = Nothing
45+
{ _name = "homepage",
46+
_kind = LSP.SymbolKind_Field,
47+
_children = Nothing
4748
}
4849
fieldLineDocumentSymbol = (Outline.defDocumentSymbol (LSP.Range {_start = LSP.Position {_line = 0, _character = 0},
4950
_end = LSP.Position {_line = 0, _character = 13}}))
50-
{ LSP._name = "cabal-version",
51-
LSP._kind = LSP.SymbolKind_Field,
52-
LSP._children = Nothing -- the values of fieldLine are removed from the outline
51+
{ _name = "cabal-version",
52+
_kind = LSP.SymbolKind_Field,
53+
_children = Nothing -- the values of fieldLine are removed from the outline
5354
}
5455
sectionDocumentSymbol = (Outline.defDocumentSymbol (LSP.Range {_start = LSP.Position {_line = 0, _character = 2},
5556
_end = LSP.Position {_line = 0, _character = 15}}))
56-
{ LSP._name = "build-depends",
57-
LSP._kind = LSP.SymbolKind_Field,
58-
LSP._children = Nothing -- the values of fieldLine are removed from the outline
57+
{ _name = "build-depends",
58+
_kind = LSP.SymbolKind_Field,
59+
_children = Nothing -- the values of fieldLine are removed from the outline
5960
}
6061
sectionArgDocumentSymbol = (Outline.defDocumentSymbol (LSP.Range {_start = LSP.Position {_line = 0, _character = 2},
6162
_end = LSP.Position {_line = 0, _character = 19}}))
62-
{ LSP._name = "if os ( windows )",
63-
LSP._kind = LSP.SymbolKind_Object,
64-
LSP._children = Just $ [sectionArgChildrenDocumentSymbol] }
63+
{ _name = "if os ( windows )",
64+
_kind = LSP.SymbolKind_Object,
65+
_children = Just $ [sectionArgChildrenDocumentSymbol] }
6566
sectionArgChildrenDocumentSymbol = (Outline.defDocumentSymbol (LSP.Range {_start = LSP.Position {_line = 1, _character = 4},
6667
_end = LSP.Position {_line = 1, _character = 17}}))
67-
{ LSP._name = "build-depends",
68-
LSP._kind = LSP.SymbolKind_Field,
69-
LSP._children = Nothing
68+
{ _name = "build-depends",
69+
_kind = LSP.SymbolKind_Field,
70+
_children = Nothing
7071
}

0 commit comments

Comments
 (0)