diff options
author | Joseph C. Sible <josephcsible@users.noreply.github.com> | 2020-03-30 00:11:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-29 21:11:05 -0700 |
commit | 377efd0ce7736685c2a43842743a11ae01ed0a0b (patch) | |
tree | fdb71f111bce17b9e8a5556c0f89739ac35eec16 /src/Text/Pandoc/Lua | |
parent | 40fd20d43fc2431e411554c138cb6e7d15654917 (diff) | |
download | pandoc-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')
-rw-r--r-- | src/Text/Pandoc/Lua/Module/MediaBag.hs | 2 |
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 |