Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- handle :: IO ArchiveResult -> ArchiveM ()
- ignore :: IO ArchiveResult -> ArchiveM ()
- lenient :: IO ArchiveResult -> ArchiveM ()
- runArchiveM :: ArchiveM a -> IO (Either ArchiveResult a)
- throwArchiveM :: ArchiveM a -> IO a
- withCStringArchiveM :: String -> (CString -> ExceptT a IO b) -> ExceptT a IO b
- useAsCStringLenArchiveM :: ByteString -> (CStringLen -> ExceptT a IO b) -> ExceptT a IO b
- allocaBytesArchiveM :: Int -> (Ptr a -> ExceptT b IO c) -> ExceptT b IO c
- type ArchiveM = ExceptT ArchiveResult IO
Documentation
runArchiveM :: ArchiveM a -> IO (Either ArchiveResult a) Source #
throwArchiveM :: ArchiveM a -> IO a Source #
Throws ArchiveResult
on error.
Since: 2.2.5.0
Bracketed resources within ArchiveM
useAsCStringLenArchiveM :: ByteString -> (CStringLen -> ExceptT a IO b) -> ExceptT a IO b Source #