purescript-0.10.7: PureScript Programming Language Compiler

Safe HaskellNone
LanguageHaskell98

Language.PureScript.Sugar.Names.Imports

Synopsis

Documentation

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

Constructs a set of imports for a module.

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

Constructs a set of imports for a single module import.

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

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