darcs-2.18.2: a distributed, interactive, smart revision control system
Safe HaskellSafe-Inferred
LanguageHaskell2010

Darcs.Repository.ApplyPatches

Synopsis

Documentation

runTolerantly :: TolerantWrapper TolerantIO a -> IO a Source #

Apply patches, emitting warnings if there are any IO errors

runSilently :: TolerantWrapper SilentIO a -> IO a Source #

Apply patches, ignoring all errors

data DefaultIO a Source #

Instances

Instances details
Applicative DefaultIO Source # 
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 Source # 
Instance details

Defined in Darcs.Repository.ApplyPatches

Methods

fmap :: (a -> b) -> DefaultIO a -> DefaultIO b #

(<$) :: a -> DefaultIO b -> DefaultIO a #

Monad DefaultIO Source # 
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 #

ApplyMonadTree DefaultIO Source # 
Instance details

Defined in Darcs.Repository.ApplyPatches

MonadThrow DefaultIO Source # 
Instance details

Defined in Darcs.Repository.ApplyPatches

Methods

throwM :: (HasCallStack, Exception e) => e -> DefaultIO a #

ApplyMonad Tree DefaultIO Source # 
Instance details

Defined in Darcs.Repository.ApplyPatches

runDefault :: DefaultIO a -> IO a Source #

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