diff options
| author | John MacFarlane <[email protected]> | 2021-08-22 19:26:53 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2021-08-22 19:28:46 -0700 |
| commit | 04d2fb2e1eb66c773b6b328a951ebb708ce46ed8 (patch) | |
| tree | f30b3d3f6623e82decafc6242fc89d6f9ad95b80 | |
| parent | 33551b63f0d06299f54a7d5fc7a689dd2f4568b8 (diff) | |
Class: Generalize type of extractMedia.
It was uselessly restricted to PandocIO, instead of any
instance of PandocMonad and MonadIO.
[API change]
| -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 7633ae2be..61ee1f1c6 100644 --- a/src/Text/Pandoc/Class/PandocIO.hs +++ b/src/Text/Pandoc/Class/PandocIO.hs @@ -75,5 +75,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 |
