Documentation
class (Functor m, MonadPlus m) => ReadableDirectory m whereSource
mDoesDirectoryExist :: FileName -> m BoolSource
mDoesFileExist :: FileName -> m BoolSource
mInCurrentDirectory :: FileName -> m a -> m aSource
mGetDirectoryContents :: m [FileName]Source
mReadBinFile :: FileName -> m StringSource
mReadFilePS :: FileName -> m ByteStringSource
mReadFilePSs :: FileName -> m [ByteString]Source
ReadableDirectory IO | |
ReadableDirectory SilentIO | |
ReadableDirectory TolerantIO | |
ReadableDirectory FilePathMonad | |
(Functor m, MonadPlus m, MonadError e m) => ReadableDirectory (TreeMonad m) | |
ReadableDirectory (HashedIO r p) |
class ReadableDirectory m => WriteableDirectory m whereSource
mWithCurrentDirectory :: FileName -> m a -> m aSource
mSetFileExecutable :: FileName -> Bool -> m ()Source
mWriteBinFile :: FileName -> String -> m ()Source
mWriteFilePS :: FileName -> ByteString -> m ()Source
mWriteFilePSs :: FileName -> [ByteString] -> m ()Source
mCreateDirectory :: FileName -> m ()Source
mRemoveDirectory :: FileName -> m ()Source
mWriteDoc :: FileName -> Doc -> m ()Source
mCreateFile :: FileName -> m ()Source
mRemoveFile :: FileName -> m ()Source
mRename :: FileName -> FileName -> m ()Source
mModifyFilePS :: FileName -> (ByteString -> m ByteString) -> m ()Source
mModifyFilePSs :: FileName -> ([ByteString] -> m [ByteString]) -> m ()Source
WriteableDirectory IO | |
WriteableDirectory SilentIO | |
WriteableDirectory TolerantIO | |
WriteableDirectory FilePathMonad | |
(Functor m, MonadPlus m, MonadError e m) => WriteableDirectory (TreeMonad m) | |
WriteableDirectory (HashedIO RW p) |
data TolerantIO a Source
runTolerantly :: TolerantIO a -> IO aSource
runSilently :: SilentIO a -> IO aSource