module Codec.Epub.Opf.Format.Manifest
where
import Control.Monad.Writer.Lazy
import Text.Printf
import Codec.Epub.Opf.Format.Util
import Codec.Epub.Opf.Package.Manifest
tellManifestItem :: MonadWriter (Seq Char) m => ManifestItem -> m ()
tellManifestItem (ManifestItem mfId href mediaType) =
tellSeq $ printf " id: %s, href: %s, media-type: %s\n"
mfId href mediaType
tellManifest :: MonadWriter (Seq Char) m => [ManifestItem] -> m ()
tellManifest mas = do
tellSeq "manifest items:\n"
mapM_ tellManifestItem mas