megaparsec/tests/Text/Megaparsec
Tomáš Janoušek 4147b2b103 Make indentBlock/IndentNone work with many like IndentMany/Some does (#161)
Even though the haddock for ‘Text.Megaparsec.Lexer.space’ says that

    Parsing of white space is an important part of any parser. We
    propose a convention where every lexeme parser assumes no spaces
    before the lexeme and consumes all spaces after the lexeme;

all the indentation-sensitive parsing combinators assume/consume whitespace
_before_ the thing to be parsed. This would normally mean they can't be used
with combinators like ‘many’ and ‘some’ without using ‘try’ (and sacrificing
performance). Fortunately ‘indentBlock’ also consumes whitespace _after_,
but unfortunately it didn't do that in the ‘IndentNone’ case. Now it does
and it works with many and some without try!
2016-12-28 02:12:57 +04:00
..
CharSpec.hs Fix a typo in the test suite 2016-11-25 18:09:37 +03:00
CombinatorSpec.hs Fix the build 2016-09-25 18:42:21 +03:00
ErrorSpec.hs Minor corrections in test suite, improve coverage 2016-09-27 00:23:17 +03:00
ExprSpec.hs Migrate the test suite to Hspec 2016-09-24 19:32:50 +03:00
LexerSpec.hs Make indentBlock/IndentNone work with many like IndentMany/Some does (#161) 2016-12-28 02:12:57 +04:00
PermSpec.hs Fix the build 2016-09-25 18:42:21 +03:00
PosSpec.hs Migrate the test suite to Hspec 2016-09-24 19:32:50 +03:00
PrimSpec.hs Allow ‘many’ run parsers that do not consume input (#160) 2016-12-26 16:49:48 +04:00