shake-plus-0.3.3.0: Re-export of Shake using well-typed paths and ReaderT.
LicenseMIT
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Development.Shake.Plus.File

Description

File utilities in Development.Shake lifted to MonadAction and well-typed Paths.

Synopsis

Documentation

copyFile :: (MonadAction m, Partial) => Path b File -> Path b' File -> m () Source #

Lifted version of copyFile with well-typed filepaths.

copyFileChanged :: (MonadAction m, Partial) => Path b File -> Path b' File -> m () Source #

Lifted version of copyFileChanged` with well-typed filepaths.

readFile' :: (MonadAction m, Partial) => Path b File -> m Text Source #

Lifted version of readFile` with a well-typed filepath.

readFileLines :: (MonadAction m, Partial) => Path b File -> m [Text] Source #

Lifted version of readFileLines a well-typed filepath.

readFileIn' :: (MonadAction m, Partial) => Path b Dir -> Path Rel File -> m Text Source #

Like readFile`, but with an argument for the parent directory. Used for symmetry with the way getDirectoryFiles takes arguments.

writeFile' :: (MonadAction m, Partial) => Path b File -> Text -> m () Source #

Lifted version of writeFile a well-typed filepath.

writeFileLines :: (MonadAction m, Partial) => Path b File -> [Text] -> m () Source #

Lifted version of writeFileLines with a well-typed filepath..

writeFileIn' :: (MonadAction m, Partial) => Path b Dir -> Path Rel File -> Text -> m () Source #

Like writeFile`, but with an argument for the parent directory. Used for symmetry with the way getDirectoryFiles takes arguments.

writeFileChanged :: (MonadAction m, Partial) => Path b File -> Text -> m () Source #

Lifted version of writeFileChanged with a well-typed filepath.

writeFileChangedIn :: (MonadAction m, Partial) => Path b Dir -> Path Rel File -> Text -> m () Source #

Like writeFileChanged`, but with an argument for the parent directory. Used for symmetry with the way getDirectoryFiles takes arguments.

removeFiles :: MonadAction m => Path b Dir -> [FilePattern] -> m () Source #

Lifted version of removeFiles that accepts a well-typed directory.

removeFilesAfter :: MonadAction m => Path b Dir -> [FilePattern] -> m () Source #

Lifted version of removeFilesAfter that accepts a well-typed directory.