darcs-2.18.5: a distributed, interactive, smart revision control system

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

data DefaultIO a #

#### Instances

Instances details

ApplyMonadTree DefaultIO # |
Instance details 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 () # mChangePref :: String -> String -> String -> DefaultIO () #
MonadThrow DefaultIO # |
Instance details Defined in Darcs.Repository.ApplyPatches Methods throwM :: (HasCallStack, Exception e) => e -> DefaultIO a #
Applicative DefaultIO # |
Instance details Defined in Darcs.Repository.ApplyPatches Methods pure :: a -> DefaultIO a # (<*>) :: DefaultIO (a -> b) -> DefaultIO a -> DefaultIO b # liftA2 :: (a -> b -> c) -> DefaultIO a -> DefaultIO b -> DefaultIO c # (*>) :: DefaultIO a -> DefaultIO b -> DefaultIO b # (<*) :: DefaultIO a -> DefaultIO b -> DefaultIO a #
Functor DefaultIO # |
Instance details Defined in Darcs.Repository.ApplyPatches Methods fmap :: (a -> b) -> DefaultIO a -> DefaultIO b # (<$) :: a -> DefaultIO b -> DefaultIO a #
Monad DefaultIO # |
Instance details Defined in Darcs.Repository.ApplyPatches Methods (>>=) :: DefaultIO a -> (a -> DefaultIO b) -> DefaultIO b # (>>) :: DefaultIO a -> DefaultIO b -> DefaultIO b # return :: a -> DefaultIO a #
ApplyMonad Tree DefaultIO # |
Instance details 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