module-management-0.20.4: Clean up module imports, split and merge modules

Safe HaskellNone
LanguageHaskell98

Language.Haskell.Modules.Merge

Synopsis

Documentation

mergeModules :: MonadClean m => [ModuleName] -> ModuleName -> m [ModuleResult] Source

Merge the declarations from several modules into a single new one, updating the imports of the modules in the moduVerse to reflect the change. It *is* permissable to use one of the input modules as the output module. Note that circular imports can be created by this operation.