diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2011-12-05 20:22:27 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2011-12-05 20:22:27 -0800 |
commit | 7b971517b031e2df2edee0a39d7dc6737bcf9a38 (patch) | |
tree | 6878577a4d8e37619c35969c6fc8b80da678852d /src/Text/Pandoc/Parsing.hs | |
parent | b2c58c11b20abc350c560bb4e7645194c6cb2801 (diff) |
Parsing: Changed type of escaped to return Char
Diffstat (limited to 'src/Text/Pandoc/Parsing.hs')
-rw-r--r-- | src/Text/Pandoc/Parsing.hs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Text/Pandoc/Parsing.hs b/src/Text/Pandoc/Parsing.hs index eaf0c0f67..acfdda2c4 100644 --- a/src/Text/Pandoc/Parsing.hs +++ b/src/Text/Pandoc/Parsing.hs @@ -325,11 +325,8 @@ failUnlessLHS = do -- | Parses backslash, then applies character parser. escaped :: GenParser Char st Char -- ^ Parser for character to escape - -> GenParser Char st Inline -escaped parser = try $ do - char '\\' - result <- parser - return (Str [result]) + -> GenParser Char st Char +escaped parser = try $ char '\\' >> parser -- | Parses an uppercase roman numeral and returns (UpperRoman, number). upperRoman :: GenParser Char st (ListNumberStyle, Int) |