Safe Haskell | None |
---|---|
Language | Haskell2010 |
Codec.Archive.Zip.Conduit.Types
Synopsis
- newtype ZipError = ZipError String
- data ZipInfo = ZipInfo {}
- data ZipEntry = ZipEntry {}
- data ZipData m
- = ZipDataByteString ByteString
- | ZipDataSource (ConduitM () ByteString m ())
- sourceZipData :: Monad m => ZipData m -> ConduitM () ByteString m ()
Documentation
Errors thrown during zip file processing
Instances
Show ZipError Source # | |
IsString ZipError Source # | |
Defined in Codec.Archive.Zip.Conduit.Types Methods fromString :: String -> ZipError # | |
Exception ZipError Source # | |
Defined in Codec.Archive.Zip.Conduit.Types Methods toException :: ZipError -> SomeException # fromException :: SomeException -> Maybe ZipError # displayException :: ZipError -> String # |
Summary information at the end of a zip stream.
Constructors
ZipInfo | |
Fields |
(The beginning of) a single entry in a zip stream, which may be any file or directory. As per zip file conventions, directory names should end with a slash and have no data, but this library does not ensure that.
Constructors
ZipEntry | |
Fields
|
Constructors
ZipDataByteString ByteString | A known ByteString, which will be fully evaluated (not streamed) |
ZipDataSource (ConduitM () ByteString m ()) | A byte stream producer, streamed (and compressed) directly into the zip |
sourceZipData :: Monad m => ZipData m -> ConduitM () ByteString m () Source #
Normalize any ZipData
to a simple source