shake-plus-0.2.0.1: Re-export of Shake using well-typed paths and ReaderT.

CopyrightCopyright (C) 2020 Daniel Firth
MaintainerDaniel Firth <dan.firth@homotopic.tech
Safe HaskellNone
LanguageHaskell2010

Development.Shake.Plus.Directory

Description

License : MIT Stability : experimental

Directory utilities in Development.Shake lifted to MonadAction and FileLike/DirLike.

Synopsis

Documentation

doesFileExist :: (MonadAction m, FileLike b a) => a -> m Bool Source #

Lifted version of doesFileExist using well-typed Paths.

doesDirectoryExist :: (MonadAction m, DirLike b a) => a -> m Bool Source #

Lifted version of doesDirectoryExist using well-typed Paths.

getDirectoryFiles :: (MonadAction m, DirLike b a) => a -> [FilePattern] -> m [Path Rel File] Source #

Lifted version of getDirectoryFiles using well-typed Paths.

getDirectoryFilesWithin :: MonadAction m => Within b [FilePattern] -> m (Within b [Path Rel File]) Source #

Like getDirectoryFiles, but accepts a Within value and returns a Within contaning a list of Paths

getDirectoryFilesWithin' :: MonadAction m => Within b [FilePattern] -> m [Within b (Path Rel File)] Source #

Like getDirectoryFilesWithin, but returns a list of Within values instead of a Within` of a list.

getDirectoryDirs :: (MonadAction m, DirLike b a) => a -> m [Path Rel Dir] Source #

Lifted version of getDirectoryDirs using well-typed Paths.

getDirectoryFilesIO :: (MonadIO m, DirLike b a) => a -> [FilePattern] -> m [Path Rel File] Source #

Lifted version of getDirectoryFilesIO using well-typed Paths.

getDirectoryFilesWithinIO :: MonadIO m => Within b [FilePattern] -> m (Within b [Path Rel File]) Source #

Like getDirectoryFilesIO, but accepts a Within value and returns a Within contaning a list of Paths

getDirectoryFilesWithinIO' :: MonadIO m => Within b [FilePattern] -> m [Within b (Path Rel File)] Source #

Like getDirectoryFilesWithinIO, but returns a list of Within values instead of a Within` of a list.