diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2015-01-30 12:31:12 +0000 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2015-02-18 12:50:21 +0000 |
commit | 9d772068278da6004712dd6b012d78f1b283a543 (patch) | |
tree | c156f73d89f2e8915511944a77c183779a3a8ba7 /src/Text/Pandoc/Readers | |
parent | e8677bae786190b203b84b7d42c30b0284bbb95c (diff) | |
download | pandoc-9d772068278da6004712dd6b012d78f1b283a543.tar.gz |
Changed parseWithWarnings to the more general returnWarnings parser transformer
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r-- | src/Text/Pandoc/Readers/RST.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/RST.hs b/src/Text/Pandoc/Readers/RST.hs index b9a77c5d6..4ae9d52ae 100644 --- a/src/Text/Pandoc/Readers/RST.hs +++ b/src/Text/Pandoc/Readers/RST.hs @@ -58,7 +58,7 @@ readRST :: ReaderOptions -- ^ Reader options readRST opts s = (readWith parseRST) def{ stateOptions = opts } (s ++ "\n\n") readRSTWithWarnings :: ReaderOptions -> String -> (Pandoc, [String]) -readRSTWithWarnings opts s = (readWithWarnings parseRST) def{ stateOptions = opts } (s ++ "\n\n") +readRSTWithWarnings opts s = (readWith (returnWarnings parseRST)) def{ stateOptions = opts } (s ++ "\n\n") type RSTParser = Parser [Char] ParserState |