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

Safe HaskellNone




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.