Safe Haskell | Safe-Inferred |
---|
- class (MonadIO m, MonadBaseControl IO m) => SourceDirs m where
- modifyDirs :: SourceDirs m => ([FilePath] -> [FilePath]) -> m ()
- withDirs :: SourceDirs m => [FilePath] -> m a -> m a
- newtype RelPath = RelPath {}
- newtype PathKey = PathKey {}
- newtype APath = APath {}
- pathKey :: (SourceDirs m, Path p, Show p) => p -> m PathKey
- class Path a where
- findFileMaybe :: SourceDirs m => a -> m (Maybe APath)
- pathKeyMaybe :: SourceDirs m => a -> m (Maybe PathKey)
- modulePath :: SourceDirs m => String -> ModuleName -> m APath
- modulePathBase :: String -> ModuleName -> RelPath
Documentation
class (MonadIO m, MonadBaseControl IO m) => SourceDirs m whereSource
putDirs :: [FilePath] -> m ()Source
Set the list of directories that will be searched for imported modules. Similar to the Hs-Source-Dirs field in the cabal file.
ModuVerse m => SourceDirs m |
modifyDirs :: SourceDirs m => ([FilePath] -> [FilePath]) -> m ()Source
Modify the list of directories that will be searched for imported modules.
withDirs :: SourceDirs m => [FilePath] -> m a -> m aSource
A FilePath that is relative to the SourceDir list
A FilePath that can be assumed to be unique.
A regular filepath with a wrapper
findFileMaybe :: SourceDirs m => a -> m (Maybe APath)Source
pathKeyMaybe :: SourceDirs m => a -> m (Maybe PathKey)Source
modulePath :: SourceDirs m => String -> ModuleName -> m APathSource
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 -> RelPathSource