@@ -199,7 +199,7 @@ elaborateImports (Module coms mn decls exps) = Module coms mn decls' exps
199199 fqValues (Var (Qualified (Just mn') _)) = [mn']
200200 fqValues _ = []
201201 mkImport :: ModuleName -> Declaration
202− mkImport mn' = ImportDeclaration mn' (Qualifying []) Nothing
202+ mkImport mn' = ImportDeclaration mn' (Explicit []) Nothing
203203
204204-- |
205205-- Replaces all local names with qualified names within a module and checks that all existing
@@ -417,7 +417,7 @@ resolveImports env (Module _ currentModule decls _) =
417417 -- module (where Nothing indicates everything is to be imported), and optionally a qualified name
418418 -- for the module
419419 scope :: M.Map ModuleName (Maybe SourceSpan, ImportDeclarationType, Maybe ModuleName)
420− scope = M.insert currentModule (Nothing, Unqualified, Nothing) (findImports decls)
420+ scope = M.insert currentModule (Nothing, Implicit, Nothing) (findImports decls)
421421
422422 resolveImport' :: ImportEnvironment -> (ModuleName, (Maybe SourceSpan, ImportDeclarationType, Maybe ModuleName)) -> m ImportEnvironment
423423 resolveImport' imp (mn, (pos, typ, impQual)) = do
@@ -437,8 +437,8 @@ resolveImport currentModule importModule exps imps impQual =
437437 where
438438
439439 resolveByType :: ImportDeclarationType -> m ImportEnvironment
440− resolveByType Unqualified = importAll importExplicit
441− resolveByType (Qualifying explImports) = (checkedRefs >=> foldM importExplicit imps) explImports
440+ resolveByType Implicit = importAll importExplicit
441+ resolveByType (Explicit explImports) = (checkedRefs >=> foldM importExplicit imps) explImports
442442 resolveByType (Hiding hiddenImports) = do
443443 hiddenImports' <- checkedRefs hiddenImports
444444 importAll (importNonHidden hiddenImports')