Skip to content

Commit ada484e

Browse files
author
Jaro Reinders
committed
Fix small issues
1 parent 82367ec commit ada484e

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

hls-test-utils/src/Development/IDE/Test.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ module Development.IDE.Test
1414
, diagnostic
1515
, expectDiagnostics
1616
, expectDiagnosticsWithTags
17+
, ExpectedDiagnostic
18+
, ExpectedDiagnosticWithTag
1719
, expectNoMoreDiagnostics
1820
, expectMessages
1921
, expectCurrentDiagnostics

plugins/hls-refactor-plugin/test/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1995,7 +1995,7 @@ suggestImportDisambiguationTests = testGroup "suggest import disambiguation acti
19951995
compareHideFunctionTo = compareTwo "HideFunction.hs"
19961996
withTarget file locs k = runWithExtraFiles "hiding" $ \dir -> do
19971997
doc <- openDoc file "haskell"
1998-
void $ expectDiagnostics [(file, [(DiagnosticSeverity_Error, loc, "Ambiguous occurrence", Just "GHC-87543") | loc <- locs])]
1998+
void $ expectDiagnostics [(file, [(DiagnosticSeverity_Error, loc, "Ambiguous occurrence", Nothing) | loc <- locs])] -- Since GHC 9.8: GHC-87110
19991999
actions <- getAllCodeActions doc
20002000
k dir doc actions
20012001
withHideFunction = withTarget ("HideFunction" <.> "hs")

test/functional/Config.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ import Development.IDE (RuleResult, action, define,
1414
getFilesOfInterestUntracked,
1515
getPluginConfigAction, ideErrorText,
1616
uses_)
17-
import Development.IDE.Test (Cursor, expectDiagnostics)
17+
import Development.IDE.Test (Cursor, ExpectedDiagnostic,
18+
expectDiagnostics)
1819
import GHC.Generics
1920
import Ide.Plugin.Config
2021
import Ide.Types

0 commit comments

Comments
 (0)