diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-08-22 19:26:53 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-08-24 22:18:37 -0700 |
commit | 8ad22002cb5ac4c79acda84c7256c6a122e2dd93 (patch) | |
tree | e4be15b1a4ac8573e335647fdb5433c5240f4cea /src/Text/Pandoc/Class | |
parent | bf860df938782fc1862ce95d12b47c40e564373b (diff) | |
download | pandoc-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.hs | 2 |
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 |