epub-metadata-2.0.2: Library and utility for parsing and manipulating ePub OPF package data

Codec.Epub.IO

Description

Functions for doing some disk IO with ePub documents

Note that these functions do their work by using the external unzip utility.

Synopsis

Documentation

extractFileFromZipSource

Arguments

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

path to zip file

-> FilePath

path within zip file to extract

-> m String

contents of expected file

Extract a file from a zipfile.

opfPathSource

Arguments

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

path to ePub zip file

-> m String

path within ePub to the OPF Package Document

Get the path within an ePub file to the OPF Package Document