Safe Haskell | None |
---|---|
Language | Haskell2010 |
Darcs.Repository.ApplyPatches
Synopsis
- runTolerantly :: TolerantWrapper TolerantIO a -> IO a
- runSilently :: TolerantWrapper SilentIO a -> IO a
- data DefaultIO a
- runDefault :: DefaultIO a -> IO a
Documentation
runTolerantly :: TolerantWrapper TolerantIO a -> IO a #
Apply patches, emitting warnings if there are any IO errors
runSilently :: TolerantWrapper SilentIO a -> IO a #
Apply patches, ignoring all errors
Instances
Applicative DefaultIO # | |
Defined in Darcs.Repository.ApplyPatches | |
Functor DefaultIO # | |
Monad DefaultIO # | |
ApplyMonadTree DefaultIO # | |
Defined in Darcs.Repository.ApplyPatches Methods mDoesDirectoryExist :: AnchoredPath -> DefaultIO Bool # mDoesFileExist :: AnchoredPath -> DefaultIO Bool # mReadFilePS :: AnchoredPath -> DefaultIO ByteString # mCreateDirectory :: AnchoredPath -> DefaultIO () # mRemoveDirectory :: AnchoredPath -> DefaultIO () # mCreateFile :: AnchoredPath -> DefaultIO () # mRemoveFile :: AnchoredPath -> DefaultIO () # mRename :: AnchoredPath -> AnchoredPath -> DefaultIO () # mModifyFilePS :: AnchoredPath -> (ByteString -> DefaultIO ByteString) -> DefaultIO () # | |
MonadThrow DefaultIO # | |
Defined in Darcs.Repository.ApplyPatches Methods throwM :: (HasCallStack, Exception e) => e -> DefaultIO a # | |
ApplyMonad Tree DefaultIO # | |
Defined in Darcs.Repository.ApplyPatches Methods readFilePS :: ObjectIdOf Tree -> DefaultIO ByteString # |
runDefault :: DefaultIO a -> IO a #
The default mode of applying patches: fail if the directory is not as we expect