hslua-module-zip-1.0.0: Lua module to work with file zips.
Copyright© 2022 Albert Krewinkel
LicenseMIT
MaintainerAlbert Krewinkel <albert+hslua@zeitkraut.de>
Safe HaskellSafe-Inferred
LanguageHaskell2010

HsLua.Module.Zip

Description

Lua module to work with file zips.

Synopsis

Module

documentedModule :: forall e. LuaError e => Module e Source #

The zip module specification.

Zip archives

mkArchive :: LuaError e => DocumentedFunction e Source #

Wrapper for toArchive; converts a string into an Archive.

read_entry :: LuaError e => DocumentedFunction e Source #

Creates a new ZipEntry from a file; wraps readEntry.

zip :: LuaError e => DocumentedFunction e Source #

Creates a new Archive from a list of files.

archive methods

extract :: LuaError e => DocumentedFunction e Source #

Returns the raw binary string representation of the archive; wraps extractFilesFromArchive

bytestring :: LuaError e => DocumentedFunction e Source #

Returns the raw binary string representation of the archive.

Zip entry

typeEntry :: LuaError e => DocumentedType e Entry Source #

The Lua type for Entry objects.

entry methods

contents :: LuaError e => DocumentedFunction e Source #

Returns the uncompressed contents of a zip entry.

Zip Options