purescript-0.12.0: PureScript Programming Language Compiler

Safe HaskellNone




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


  • 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 paths paired with parsed modules, and a Map of 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.