Safe Haskell | None |
---|---|
Language | Haskell2010 |
- parseFilesInPackages :: (MonadError MultipleErrors m, MonadIO m) => [FilePath] -> [(PackageName, FilePath)] -> m ([(FilePath, Module)], Map ModuleName PackageName)
Documentation
parseFilesInPackages :: (MonadError MultipleErrors m, MonadIO m) => [FilePath] -> [(PackageName, FilePath)] -> m ([(FilePath, 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 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.