aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Lua/Module
diff options
context:
space:
mode:
authorJoseph C. Sible <josephcsible@users.noreply.github.com>2020-03-30 00:11:05 -0400
committerGitHub <noreply@github.com>2020-03-29 21:11:05 -0700
commit377efd0ce7736685c2a43842743a11ae01ed0a0b (patch)
treefdb71f111bce17b9e8a5556c0f89739ac35eec16 /src/Text/Pandoc/Lua/Module
parent40fd20d43fc2431e411554c138cb6e7d15654917 (diff)
downloadpandoc-377efd0ce7736685c2a43842743a11ae01ed0a0b.tar.gz
Clean up some fmaps (#6226)
* Avoid fmapping when we're just binding right after anyway * Clean up unnecessary fmaps in the LaTeX reader
Diffstat (limited to 'src/Text/Pandoc/Lua/Module')
-rw-r--r--src/Text/Pandoc/Lua/Module/MediaBag.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Lua/Module/MediaBag.hs b/src/Text/Pandoc/Lua/Module/MediaBag.hs
index 769f7e110..3a296ef46 100644
--- a/src/Text/Pandoc/Lua/Module/MediaBag.hs
+++ b/src/Text/Pandoc/Lua/Module/MediaBag.hs
@@ -85,7 +85,7 @@ insertMediaFn fp optionalMime contents = do
-- | Returns iterator values to be used with a Lua @for@ loop.
items :: Lua NumResults
-items = stMediaBag <$> getCommonState >>= pushIterator
+items = getCommonState >>= pushIterator . stMediaBag
lookupMediaFn :: FilePath
-> Lua NumResults