aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Class
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-08-22 19:26:53 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-08-24 22:18:37 -0700
commit8ad22002cb5ac4c79acda84c7256c6a122e2dd93 (patch)
treee4be15b1a4ac8573e335647fdb5433c5240f4cea /src/Text/Pandoc/Class
parentbf860df938782fc1862ce95d12b47c40e564373b (diff)
downloadpandoc-8ad22002cb5ac4c79acda84c7256c6a122e2dd93.tar.gz
Class: Generalize type of extractMedia.
It was uselessly restricted to PandocIO, instead of any instance of PandocMonad and MonadIO. [API change]
Diffstat (limited to 'src/Text/Pandoc/Class')
-rw-r--r--src/Text/Pandoc/Class/PandocIO.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Class/PandocIO.hs b/src/Text/Pandoc/Class/PandocIO.hs
index 0e5247ff9..86038a659 100644
--- a/src/Text/Pandoc/Class/PandocIO.hs
+++ b/src/Text/Pandoc/Class/PandocIO.hs
@@ -74,5 +74,5 @@ instance PandocMonad PandocIO where
logOutput = IO.logOutput
-- | Extract media from the mediabag into a directory.
-extractMedia :: FilePath -> Pandoc -> PandocIO Pandoc
+extractMedia :: (PandocMonad m, MonadIO m) => FilePath -> Pandoc -> m Pandoc
extractMedia = IO.extractMedia