Skip to content

Commit 91f44f8

Browse files
committed
Fix tests
1 parent 341a101 commit 91f44f8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ghcide/test/exe/Main.hs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import Development.IDE.Core.PositionMapping (PositionResult (..),
3636
positionResultToMaybe,
3737
toCurrent)
3838
import Development.IDE.Core.Shake (Q (..))
39-
import Development.IDE.Main as IDE
39+
import qualified Development.IDE.Main as IDE
4040
import Development.IDE.GHC.Util
4141
import Development.IDE.Plugin.Completions.Types (extendImportCommandId)
4242
import Development.IDE.Plugin.TypeLenses (typeLensCommandId)
@@ -1390,7 +1390,7 @@ extendImportTests = testGroup "extend import actions"
13901390
])
13911391
, expectFailBecause "importing pattern synonyms is unsupported"
13921392
$ testSession "extend import list with pattern synonym" $ template
1393-
[("ModuleA.hs", T.unlines
1393+
[("ModuleA.hs", T.unlines
13941394
[ "{-# LANGUAGE PatternSynonyms #-}"
13951395
, "module ModuleA where"
13961396
, "pattern Some x = Just x"
@@ -5294,22 +5294,22 @@ unitTests = do
52945294
| i <- [(1::Int)..20]
52955295
] ++ Ghcide.descriptors
52965296

5297-
testIde def{argsHlsPlugins = plugins} $ do
5297+
testIde def{IDE.argsHlsPlugins = plugins} $ do
52985298
_ <- createDoc "haskell" "A.hs" "module A where"
52995299
waitForProgressDone
53005300
actualOrder <- liftIO $ readIORef orderRef
53015301

53025302
liftIO $ actualOrder @?= reverse [(1::Int)..20]
53035303
]
53045304

5305-
testIde :: Arguments -> Session () -> IO ()
5305+
testIde :: IDE.Arguments -> Session () -> IO ()
53065306
testIde arguments session = do
53075307
config <- getConfigFromEnv
53085308
(hInRead, hInWrite) <- createPipe
53095309
(hOutRead, hOutWrite) <- createPipe
53105310
let server = IDE.defaultMain arguments
5311-
{ argsHandleIn = pure hInRead
5312-
, argsHandleOut = pure hOutWrite
5311+
{ IDE.argsHandleIn = pure hInRead
5312+
, IDE.argsHandleOut = pure hOutWrite
53135313
}
53145314

53155315
withAsync server $ \_ ->

0 commit comments

Comments
 (0)