epub-metadata-5.4: Library for parsing epub document metadata
Safe HaskellSafe-Inferred
LanguageHaskell2010

Codec.Epub.IO

Description

Functions for performing some IO operations on epub files

Synopsis

Documentation

getPkgXmlFromZip Source #

Arguments

:: (MonadError String m, MonadIO m) 
=> FilePath

path to epub zip file

-> m String

contents of the epub Package Document

Get the contents of the epub Package Document from an epub (zip) file

getPkgPathXmlFromZip Source #

Arguments

:: (MonadError String m, MonadIO m) 
=> FilePath

path to epub zip file

-> m (FilePath, String)

path (within the epub archive) and contents of the epub Package Document

Get the path and contents of the epub Package Document from an epub (zip) file

getPkgPathXmlFromBS Source #

Arguments

:: (MonadError String m, MonadIO m) 
=> ByteString

contents of the zip file

-> m (FilePath, String)

path (within the epub archive) and contents of the epub Package Document

Get the path and contents of the epub Package Document from a ByteString representing an epub (zip) file

getPkgPathXmlFromDir Source #

Arguments

:: (MonadError String m, MonadIO m) 
=> FilePath

directory path

-> m (FilePath, String)

path (within the epub archive) and contents of the epub Package Document

Get the path and contents of the epub Package Document from a directory containing the files from an epub file (as in: it's been unzipped into a dir)

mkEpubArchive :: FilePath -> IO Archive Source #

Construct a zip Archive containing epub book data from the specified directory

readArchive :: FilePath -> IO Archive Source #

Read a zip Archive from disk

writeArchive :: FilePath -> Archive -> IO () Source #

Write a zip Archive to disk using the specified filename