diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-07-13 23:37:21 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-07-13 23:37:21 +0200 |
commit | 3a36441b617b9dff632eda0ac14ca26072e0730b (patch) | |
tree | 5764066d50c283ae5e1f91961732a1f657b06145 /src/Text/Pandoc/MediaBag.hs | |
parent | 247257ed3e19fe4100c75bd9c8755e0c6db290af (diff) |
Use foldrWithKey instead of deprecated foldWithKey.
Diffstat (limited to 'src/Text/Pandoc/MediaBag.hs')
-rw-r--r-- | src/Text/Pandoc/MediaBag.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/MediaBag.hs b/src/Text/Pandoc/MediaBag.hs index d8d6da345..f89c60c9e 100644 --- a/src/Text/Pandoc/MediaBag.hs +++ b/src/Text/Pandoc/MediaBag.hs @@ -79,5 +79,5 @@ lookupMedia fp (MediaBag mediamap) = M.lookup (splitDirectories fp) mediamap -- their corresponding mime types and the lengths in bytes of the contents. mediaDirectory :: MediaBag -> [(String, MimeType, Int)] mediaDirectory (MediaBag mediamap) = - M.foldWithKey (\fp (mime,contents) -> + M.foldrWithKey (\fp (mime,contents) -> (((Posix.joinPath fp), mime, fromIntegral $ BL.length contents):)) [] mediamap |