Module ICurry.DependencyResolution

Find all dependencies of modules recursively

Author: Marc Andre Wittorf

Summary of exported operations:

buildDepGraph :: [String] -> [Either String String] -> IO [ModuleDep]   
Recursively load module's dependencies

Exported datatypes:


ModuleDep

A module with its dependencies

Constructors:

  • ModuleDep :: String -> FilePath -> [String] -> ModuleDep

    Fields:

    • moduleName :: String
    • modulePath :: FilePath
    • moduleDeps :: [String]

Exported operations:

buildDepGraph :: [String] -> [Either String String] -> IO [ModuleDep]   

Recursively load module's dependencies

Example call:
(buildDepGraph paths initials)
Parameters:
  • paths : search paths for modules
  • initials : the modules to find dependencies of
Returns:
moduleDeps for the modules and all dependencies