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

Safe Haskell | None
Language | Haskell2010

Darcs.Repository.ApplyPatches

Synopsis

- applyPatches :: (MonadProgress m, ApplyMonad (ApplyState p) m, Patchy p) => FL (PatchInfoAnd rt p) wX wY -> m ()
- runTolerantly :: TolerantWrapper TolerantIO a -> IO a
- runSilently :: TolerantWrapper SilentIO a -> IO a
- data DefaultIO a
- runDefault :: DefaultIO a -> IO a

# Documentation

applyPatches :: (MonadProgress m, ApplyMonad (ApplyState p) m, Patchy p) => FL (PatchInfoAnd rt p) wX wY -> m () #

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

Monad DefaultIO # |
Methods (>>=) :: DefaultIO a -> (a -> DefaultIO b) -> DefaultIO b # (>>) :: DefaultIO a -> DefaultIO b -> DefaultIO b # return :: a -> DefaultIO a # fail :: String -> DefaultIO a #
Functor DefaultIO # |
Methods fmap :: (a -> b) -> DefaultIO a -> DefaultIO b # (<$) :: a -> DefaultIO b -> DefaultIO a #
Applicative DefaultIO # |
Methods pure :: a -> DefaultIO a # (<*>) :: DefaultIO (a -> b) -> DefaultIO a -> DefaultIO b # (*>) :: DefaultIO a -> DefaultIO b -> DefaultIO b # (<*) :: DefaultIO a -> DefaultIO b -> DefaultIO a #
MonadProgress DefaultIO # |
Methods runProgressActions :: String -> [ProgressAction DefaultIO ()] -> DefaultIO () #
ApplyMonadTree DefaultIO # |
Methods mDoesDirectoryExist :: FileName -> DefaultIO Bool # mDoesFileExist :: FileName -> DefaultIO Bool # mReadFilePS :: FileName -> DefaultIO ByteString # mReadFilePSs :: FileName -> DefaultIO [ByteString] # mCreateDirectory :: FileName -> DefaultIO () # mRemoveDirectory :: FileName -> DefaultIO () # mCreateFile :: FileName -> DefaultIO () # mRemoveFile :: FileName -> DefaultIO () # mRename :: FileName -> FileName -> DefaultIO () # mModifyFilePS :: FileName -> (ByteString -> DefaultIO ByteString) -> DefaultIO () # mModifyFilePSs :: FileName -> ([ByteString] -> DefaultIO [ByteString]) -> DefaultIO () # mChangePref :: String -> String -> String -> DefaultIO () #
ApplyMonad Tree DefaultIO # |
Associated Types type ApplyMonadBase (DefaultIO :: * -> *) :: * -> * # Methods nestedApply :: DefaultIO x -> Tree (ApplyMonadBase DefaultIO) -> DefaultIO (x, Tree (ApplyMonadBase DefaultIO)) # liftApply :: (Tree (ApplyMonadBase DefaultIO) -> ApplyMonadBase DefaultIO x) -> Tree (ApplyMonadBase DefaultIO) -> DefaultIO (x, Tree (ApplyMonadBase DefaultIO)) # getApplyState :: DefaultIO (Tree (ApplyMonadBase DefaultIO)) #
type ApplyMonadBase DefaultIO # |
type ApplyMonadBase DefaultIO = IO

runDefault :: DefaultIO a -> IO a #

The default mode of applying patches: fail if the directory is not as we expect