purescript-0.15.15: PureScript Programming Language Compiler
Safe HaskellNone
LanguageHaskell2010

Language.PureScript.Sugar.Names.Imports

Synopsis

Documentation

resolveImports :: MonadError MultipleErrors m => Env -> Module -> m (Module, Imports) #

Constructs a set of imports for a module.

resolveModuleImport :: MonadError MultipleErrors m => Env -> Imports -> (ModuleName, [(SourceSpan, Maybe ImportDeclarationType, Maybe ModuleName)]) -> m Imports #

Constructs a set of imports for a single module import.

findImports :: [Declaration] -> Map ModuleName [ImportDef] #

Finds the imports within a module, mapping the imported module name to an optional set of explicitly imported declarations.