megaparsec/Text/MegaParsec
mrkkrp c5bcdfb220 rewritten parsing of numbers, fixes #2 and #3
Changed how numbers are parsed because they were parsed in a naïf and
hairy way. Added tests for #2 and #3 (in old Parsec project these are
number 35 and 39 respectively).

* Since Haskell report doesn't say anything about sign, I've made
  ‘integer’ and ‘float’ parse numbers without sign.

* Removed ‘natural’ parser, it's equal to new ‘integer’ now.

* Renamed ‘naturalOrFloat’ → ‘number’ — this doesn't parse sign too.

* Added new combinator ‘signed’ to parse all sorts of signed numbers.

* For the sake of convenience I've added ‘integer'’, ‘float'’, and
 ‘number'’ combinators that also can parse signed numbers out of box.
2015-07-31 17:30:38 +06:00
..
ByteString improved documentation, fixes #1 2015-07-31 00:36:54 +06:00
Text improved documentation, fixes #1 2015-07-31 00:36:54 +06:00
ByteString.hs improved documentation, fixes #1 2015-07-31 00:36:54 +06:00
Char.hs cosmetic changes in copyright (headers) 2015-07-30 22:20:37 +06:00
Combinator.hs cosmetic changes in copyright (headers) 2015-07-30 22:20:37 +06:00
Error.hs improved documentation, fixes #1 2015-07-31 00:36:54 +06:00
Expr.hs cosmetic changes in copyright (headers) 2015-07-30 22:20:37 +06:00
Language.hs improved documentation, fixes #1 2015-07-31 00:36:54 +06:00
Perm.hs cosmetic changes in copyright (headers) 2015-07-30 22:20:37 +06:00
Pos.hs improved documentation, fixes #1 2015-07-31 00:36:54 +06:00
Prim.hs improve efficiency of applicative interface 2015-07-31 01:50:36 +06:00
String.hs improved documentation, fixes #1 2015-07-31 00:36:54 +06:00
Text.hs improved documentation, fixes #1 2015-07-31 00:36:54 +06:00
Token.hs rewritten parsing of numbers, fixes #2 and #3 2015-07-31 17:30:38 +06:00