Safe Haskell | Safe-Inferred |
---|
- class MonadCatchIO m => SourceDirs m where
- modifyDirs :: SourceDirs m => ([FilePath] -> [FilePath]) -> m ()
- newtype PathKey = PathKey {}
- pathKey :: SourceDirs m => FilePath -> m PathKey
- pathKeyMaybe :: SourceDirs m => FilePath -> m (Maybe PathKey)
- modulePath :: SourceDirs m => String -> ModuleName -> m FilePath
- modulePathBase :: String -> ModuleName -> FilePath
Documentation
class MonadCatchIO m => SourceDirs m whereSource
ModuVerse m => SourceDirs m |
modifyDirs :: SourceDirs m => ([FilePath] -> [FilePath]) -> m ()Source
A FilePath that can be assumed to be unique.
pathKey :: SourceDirs m => FilePath -> m PathKeySource
pathKeyMaybe :: SourceDirs m => FilePath -> m (Maybe PathKey)Source
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.