aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/App
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-03-20 10:41:55 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-03-20 15:58:32 -0700
commitce418667ae8a3e6e5bbf2523eef43edf4f803bcf (patch)
treec488d055ff31fe49de81cd36a5a35718964287cc /src/Text/Pandoc/App
parent4d041953f56b85d4db241cea11c764856ccbeebe (diff)
downloadpandoc-ce418667ae8a3e6e5bbf2523eef43edf4f803bcf.tar.gz
Text.Pandoc.Parsing: remove F type synonym.
Muse and Org were defining their own F anyway, with their own state. We therefore move this definition to the Markdown reader.
Diffstat (limited to 'src/Text/Pandoc/App')
-rw-r--r--src/Text/Pandoc/App/Opt.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/App/Opt.hs b/src/Text/Pandoc/App/Opt.hs
index e5aaec9c5..c72f63464 100644
--- a/src/Text/Pandoc/App/Opt.hs
+++ b/src/Text/Pandoc/App/Opt.hs
@@ -686,7 +686,8 @@ yamlToMeta (Mapping _ _ m) =
either (fail . show) return $ runEverything (yamlMap pMetaString m)
where
pMetaString = pure . MetaString <$> P.manyChar P.anyChar
- runEverything p = runPure (P.readWithM p def "")
+ runEverything p =
+ runPure (P.readWithM p (def :: P.ParserState) "")
>>= fmap (Meta . flip P.runF def)
yamlToMeta _ = return mempty