conduit-vfs-zip-0.1.0.1: Zip archive interface for the Conduit Virtual File System.

Safe HaskellNone
LanguageHaskell2010

Data.Conduit.VFS.Zip.Import

Synopsis

Documentation

createDiskZipVFS :: MonadResource m => FilePath -> m (ZipVFS m Archive) Source #

Creates a Zip VFSC backed by a file. The file will be loaded in the resulting monad, and the resulting archive will be written back to the file path when the conduit completes. If the file does not exist when the monad is initially executed, then an empty archive is used initially and the zip file will be created at the given filepath when the conduit completes.

emptyZipVFS :: Applicative m => ZipVFS m Archive Source #

Creates a Zip VFSC without any entries, and not attached to any file.

createZipVFS :: Applicative m => Archive -> ZipVFS m Archive Source #

Creates a Zip VFSC based on the provided Archive, and not attached to any file.