Safe Haskell | None |
---|
Functions for performing some IO operations on epub files
- 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
:: (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
:: (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
:: (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
:: (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 ArchiveSource
Construct a zip Archive containing epub book data from the specified directory
readArchive :: FilePath -> IO ArchiveSource
Read a zip Archive from disk
writeArchive :: FilePath -> Archive -> IO ()Source
Write a zip Archive to disk using the specified filename