Parsing: Generalized type of withQuoteContext.

This commit is contained in:
John MacFarlane 2012-09-09 18:12:18 -07:00
parent 204ee87803
commit 7fc804ed22

View file

@ -811,8 +811,8 @@ quoted :: Parser [Char] ParserState Inline
quoted inlineParser = doubleQuoted inlineParser <|> singleQuoted inlineParser
withQuoteContext :: QuoteContext
-> Parser [Char] ParserState a
-> Parser [Char] ParserState a
-> Parser [tok] ParserState a
-> Parser [tok] ParserState a
withQuoteContext context parser = do
oldState <- getState
let oldQuoteContext = stateQuoteContext oldState