| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Codec.Epub.IO
Description
Functions for performing some IO operations on epub files
Synopsis
- getPkgXmlFromZip :: (MonadError String m, MonadIO m) => FilePath -> m String
- getPkgPathXmlFromZip :: (MonadError String m, MonadIO m) => FilePath -> m (FilePath, String)
- getPkgPathXmlFromBS :: (MonadError String m, MonadIO m) => ByteString -> m (FilePath, String)
- getPkgPathXmlFromDir :: (MonadError String m, MonadIO m) => FilePath -> m (FilePath, String)
- mkEpubArchive :: FilePath -> IO Archive
- readArchive :: FilePath -> IO Archive
- writeArchive :: FilePath -> Archive -> IO ()
Documentation
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
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
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
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)