| darcs | Source code | Contents | Index
Darcs.IO
Documentation
class (Functor m, MonadPlus m) => ReadableDirectory m where | Source
Methods
mDoesDirectoryExist :: FileName -> m Bool | Source
mDoesFileExist :: FileName -> m Bool | Source
mInCurrentDirectory :: FileName -> m a -> m a | Source
mGetDirectoryContents :: m [FileName] | Source
mReadBinFile :: FileName -> m String | Source
mReadFilePS :: FileName -> m ByteString | Source
mReadFilePSs :: FileName -> m [ByteString] | Source
Instances
ReadableDirectory IO
ReadableDirectory SilentIO
ReadableDirectory TolerantIO
ReadableDirectory FilePathMonad
ReadableDirectory SlurpMonad
(MonadPlus m, MonadError e m) => ReadableDirectory (TreeMonad m)
ReadableDirectory (HashedIO r p)
class ReadableDirectory m => WriteableDirectory m where | Source
Methods
mWithCurrentDirectory :: FileName -> m a -> m a | Source
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
Instances
WriteableDirectory IO
WriteableDirectory SilentIO
WriteableDirectory TolerantIO
WriteableDirectory FilePathMonad
WriteableDirectory SlurpMonad
(Functor m, MonadPlus m, MonadError e m) => WriteableDirectory (TreeMonad m)
WriteableDirectory (HashedIO RW p)
data TolerantIO a | Source
Instances
Monad TolerantIO
Functor TolerantIO
MonadPlus TolerantIO
TolerantMonad TolerantIO
WriteableDirectory TolerantIO
ReadableDirectory TolerantIO
runTolerantly :: TolerantIO a -> IO a | Source
runSilently :: SilentIO a -> IO a | Source
Produced by Haddock version 2.4.2