Pandoc.Parsing: rewrite nonspaceChar using noneOf

This commit is contained in:
Alexander Krotov 2018-10-10 18:53:01 +03:00
parent 8d959179f9
commit 2aa417a2e5

View file

@ -397,7 +397,7 @@ spaceChar = satisfy $ \c -> c == ' ' || c == '\t'
-- | Parses a nonspace, nonnewline character.
nonspaceChar :: Stream s m Char => ParserT s st m Char
nonspaceChar = satisfy $ flip notElem ['\t', '\n', ' ', '\r']
nonspaceChar = noneOf ['\t', '\n', ' ', '\r']
-- | Skips zero or more spaces or tabs.
skipSpaces :: Stream s m Char => ParserT s st m ()