Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
- class MonadIO m => MonadDryRun m where
- dryIO :: MonadDryRun m => IO () -> m ()
- dryIO' :: MonadDryRun m => IO a -> IO a -> m a
- tildeBackup :: FilePath -> Maybe FilePath
- noBackup :: FilePath -> Maybe FilePath
- readFileMaybe :: FilePath -> IO (Maybe String)
- replaceFile :: MonadDryRun m => (FilePath -> Maybe FilePath) -> FilePath -> String -> m ()
- replaceFileIfDifferent :: MonadDryRun m => FilePath -> String -> m Bool
- removeFileIfPresent :: MonadDryRun m => FilePath -> m ()
- createDirectoryIfMissing :: MonadDryRun m => Bool -> String -> m ()
- writeFile :: MonadDryRun m => FilePath -> String -> m ()
Documentation
class MonadIO m => MonadDryRun m where Source
MonadClean m => MonadDryRun m |
dryIO :: MonadDryRun m => IO () -> m () Source
dryIO' :: MonadDryRun m => IO a -> IO a -> m a Source
tildeBackup :: FilePath -> Maybe FilePath Source
replaceFile :: MonadDryRun m => (FilePath -> Maybe FilePath) -> FilePath -> String -> m () Source
Replace the file at path with the given text, moving the original to the location returned by passing path to backup. If backup is the identity function you're going to have a bad time.
replaceFileIfDifferent :: MonadDryRun m => FilePath -> String -> m Bool Source
removeFileIfPresent :: MonadDryRun m => FilePath -> m () Source
createDirectoryIfMissing :: MonadDryRun m => Bool -> String -> m () Source
writeFile :: MonadDryRun m => FilePath -> String -> m () Source