diff options
| author | John MacFarlane <[email protected]> | 2022-08-13 20:36:44 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-08-13 20:36:44 -0700 |
| commit | 6274327398552d24cfdd54ffc6e9379bd886d191 (patch) | |
| tree | 7b2ecb59206961bd8580d75cbe2ed74316e2a34a /src | |
| parent | 62ddc1ae540d0a5d8d3a7caa10dc2d9489a84aa1 (diff) | |
App: Remove unneeded MonadIO constraints in readSources.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Text/Pandoc/App.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/App.hs b/src/Text/Pandoc/App.hs index 857ded58b..66c37b0e0 100644 --- a/src/Text/Pandoc/App.hs +++ b/src/Text/Pandoc/App.hs @@ -400,13 +400,13 @@ adjustMetadata f (Pandoc meta bs) = Pandoc (f meta) bs applyTransforms :: Monad m => [Transform] -> Pandoc -> m Pandoc applyTransforms transforms d = return $ foldr ($) d transforms -readSources :: (PandocMonad m, MonadIO m) +readSources :: PandocMonad m => [FilePath] -> m [(FilePath, (BS.ByteString, Maybe MimeType))] readSources srcs = mapM (\fp -> do t <- readSource fp return (if fp == "-" then "" else fp, t)) srcs -readSource :: (PandocMonad m, MonadIO m) +readSource :: PandocMonad m => FilePath -> m (BS.ByteString, Maybe MimeType) readSource "-" = (,Nothing) <$> readStdinStrict readSource src = |
