Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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 Source #
Apply patches, emitting warnings if there are any IO errors
runSilently :: TolerantWrapper SilentIO a -> IO a Source #
Apply patches, ignoring all errors
Instances
Applicative DefaultIO Source # | |
Functor DefaultIO Source # | |
Monad DefaultIO Source # | |
ApplyMonadTree DefaultIO Source # | |
Defined in Darcs.Repository.ApplyPatches mDoesDirectoryExist :: AnchoredPath -> DefaultIO Bool Source # mDoesFileExist :: AnchoredPath -> DefaultIO Bool Source # mReadFilePS :: AnchoredPath -> DefaultIO ByteString Source # mCreateDirectory :: AnchoredPath -> DefaultIO () Source # mRemoveDirectory :: AnchoredPath -> DefaultIO () Source # mCreateFile :: AnchoredPath -> DefaultIO () Source # mRemoveFile :: AnchoredPath -> DefaultIO () Source # mRename :: AnchoredPath -> AnchoredPath -> DefaultIO () Source # mModifyFilePS :: AnchoredPath -> (ByteString -> DefaultIO ByteString) -> DefaultIO () Source # mChangePref :: String -> String -> String -> DefaultIO () Source # | |
MonadThrow DefaultIO Source # | |
Defined in Darcs.Repository.ApplyPatches throwM :: (HasCallStack, Exception e) => e -> DefaultIO a # | |
ApplyMonad Tree DefaultIO Source # | |
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