Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provides the ability to sort modules based on module dependencies
- sortModules :: forall m. MonadError MultipleErrors m => [Module] -> m ([Module], ModuleGraph)
- type ModuleGraph = [(ModuleName, [ModuleName])]
Documentation
sortModules :: forall m. MonadError MultipleErrors m => [Module] -> m ([Module], ModuleGraph) Source #
Sort a collection of modules based on module dependencies.
Reports an error if the module graph contains a cycle.
type ModuleGraph = [(ModuleName, [ModuleName])] Source #
A list of modules with their transitive dependencies