purescript-0.5.6.2: PureScript Programming Language Compiler

Safe HaskellNone
LanguageHaskell98

Language.PureScript.ModuleDependencies

Description

Provides the ability to sort modules based on module dependencies

Synopsis

Documentation

sortModules :: [Module] -> Either String ([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 dependencies