purescript-0.11.1: PureScript Programming Language Compiler

Safe HaskellNone
LanguageHaskell98

Language.PureScript.Docs.ParseInPackage

Synopsis

Documentation

parseFilesInPackages :: (MonadError MultipleErrors m, MonadIO m) => [FilePath] -> [(PackageName, FilePath)] -> m ([Module], Map ModuleName PackageName) Source #

Given:

  • A list of local source files
  • A list of source files from external dependencies, together with their package names

This function does the following:

  • Parse all of the input and dependency source files
  • Associate each dependency module with its package name, thereby distinguishing these from local modules
  • Return the parsed modules and a Map mapping module names to package names for modules which come from dependencies. If a module does not exist in the map, it can safely be assumed to be local.