@@ -199,7 +199,7 @@ elaborateImports (Module coms mn decls exps) = Module coms mn decls' exps
199 fqValues (Var (Qualified (Just mn') _)) = [mn']
199 fqValues (Var (Qualified (Just mn') _)) = [mn']
200 fqValues _ = []
200 fqValues _ = []
201 mkImport :: ModuleName -> Declaration
201 mkImport :: ModuleName -> Declaration
202− mkImport mn' = ImportDeclaration mn' (Qualifying []) Nothing
202+ mkImport mn' = ImportDeclaration mn' (Explicit []) Nothing
205-- Replaces all local names with qualified names within a module and checks that all existing
205-- Replaces all local names with qualified names within a module and checks that all existing
@@ -417,7 +417,7 @@ resolveImports env (Module _ currentModule decls _) =
417 -- module (where Nothing indicates everything is to be imported), and optionally a qualified name
417 -- module (where Nothing indicates everything is to be imported), and optionally a qualified name
418 -- for the module
418 -- for the module
419 scope :: M.Map ModuleName (Maybe SourceSpan, ImportDeclarationType, Maybe ModuleName)
419 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)
422 resolveImport' :: ImportEnvironment -> (ModuleName, (Maybe SourceSpan, ImportDeclarationType, Maybe ModuleName)) -> m ImportEnvironment
422 resolveImport' :: ImportEnvironment -> (ModuleName, (Maybe SourceSpan, ImportDeclarationType, Maybe ModuleName)) -> m ImportEnvironment
423 resolveImport' imp (mn, (pos, typ, impQual)) = do
423 resolveImport' imp (mn, (pos, typ, impQual)) = do
@@ -437,8 +437,8 @@ resolveImport currentModule importModule exps imps impQual =
439 resolveByType :: ImportDeclarationType -> m ImportEnvironment
439 resolveByType :: ImportDeclarationType -> m ImportEnvironment
440− resolveByType Unqualified = importAll importExplicit
440+ resolveByType Implicit = importAll importExplicit
441− resolveByType (Qualifying explImports) = (checkedRefs >=> foldM importExplicit imps) explImports
441+ resolveByType (Explicit explImports) = (checkedRefs >=> foldM importExplicit imps) explImports
442 resolveByType (Hiding hiddenImports) = do
442 resolveByType (Hiding hiddenImports) = do
443 hiddenImports' <- checkedRefs hiddenImports
443 hiddenImports' <- checkedRefs hiddenImports
444 importAll (importNonHidden hiddenImports')
444 importAll (importNonHidden hiddenImports')