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

Safe HaskellSafe-Inferred

Language.Haskell.Modules.SourceDirs

Synopsis

Documentation

class MonadCatchIO m => SourceDirs m whereSource

Methods

putDirs :: [FilePath] -> m ()Source

getDirs :: m [FilePath]Source

Instances

modifyDirs :: SourceDirs m => ([FilePath] -> [FilePath]) -> m ()Source

newtype PathKey Source

A FilePath that can be assumed to be unique.

Constructors

PathKey 

Fields

unPathKey :: FilePath
 

modulePath :: SourceDirs m => String -> ModuleName -> m FilePathSource

Search the path directory list, preferring an already existing file, but if there is none construct one using the first element of the directory list.

modulePathBase :: String -> ModuleName -> FilePathSource

Construct the base of a module path.