Skip to content

Commit 75ee342

Browse files
committed
reduce imports
1 parent 7c1c2e2 commit 75ee342

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Outline (
55
outlineTests
66
) where
77

8-
import qualified Ide.Plugin.Cabal.Outline as Outline
8+
import Ide.Plugin.Cabal.Outline ( defDocumentSymbol )
99
import Test.Hls
1010
import Utils
1111

@@ -39,34 +39,34 @@ outlineTests =
3939
]
4040
where
4141
fieldDocumentSymbol :: DocumentSymbol
42-
fieldDocumentSymbol = (Outline.defDocumentSymbol (Range {_start = Position {_line = 0, _character = 0},
42+
fieldDocumentSymbol = (defDocumentSymbol (Range {_start = Position {_line = 0, _character = 0},
4343
_end = Position {_line = 0, _character = 8}}))
4444
{ _name = "homepage",
4545
_kind = SymbolKind_Field,
4646
_children = Nothing
4747
}
4848
fieldLineDocumentSymbol :: DocumentSymbol
49-
fieldLineDocumentSymbol = (Outline.defDocumentSymbol (Range {_start = Position {_line = 0, _character = 0},
49+
fieldLineDocumentSymbol = (defDocumentSymbol (Range {_start = Position {_line = 0, _character = 0},
5050
_end = Position {_line = 0, _character = 13}}))
5151
{ _name = "cabal-version",
5252
_kind = SymbolKind_Field,
5353
_children = Nothing -- the values of fieldLine are removed from the outline
5454
}
5555
sectionDocumentSymbol :: DocumentSymbol
56-
sectionDocumentSymbol = (Outline.defDocumentSymbol (Range {_start = Position {_line = 0, _character = 2},
56+
sectionDocumentSymbol = (defDocumentSymbol (Range {_start = Position {_line = 0, _character = 2},
5757
_end = Position {_line = 0, _character = 15}}))
5858
{ _name = "build-depends",
5959
_kind = SymbolKind_Field,
6060
_children = Nothing -- the values of fieldLine are removed from the outline
6161
}
6262
sectionArgDocumentSymbol :: DocumentSymbol
63-
sectionArgDocumentSymbol = (Outline.defDocumentSymbol (Range {_start = Position {_line = 0, _character = 2},
63+
sectionArgDocumentSymbol = (defDocumentSymbol (Range {_start = Position {_line = 0, _character = 2},
6464
_end = Position {_line = 0, _character = 19}}))
6565
{ _name = "if os ( windows )",
6666
_kind = SymbolKind_Object,
6767
_children = Just $ [sectionArgChildrenDocumentSymbol] }
6868
sectionArgChildrenDocumentSymbol :: DocumentSymbol
69-
sectionArgChildrenDocumentSymbol = (Outline.defDocumentSymbol (Range {_start = Position {_line = 1, _character = 4},
69+
sectionArgChildrenDocumentSymbol = (defDocumentSymbol (Range {_start = Position {_line = 1, _character = 4},
7070
_end = Position {_line = 1, _character = 17}}))
7171
{ _name = "build-depends",
7272
_kind = SymbolKind_Field,

0 commit comments

Comments
 (0)