[Haskell-beginners] Parsing an integer

Stephen Tetley stephen.tetley at gmail.com
Sun Nov 21 09:50:56 EST 2010


Where is the Parser monad coming from?

If its Parsec, a "seasoned Haskeller" would avoid read (which is
re-parsing already parsed data) and use the integer parser from
Parsec's Token parser module.[*]

[*] The one caveat is that the number parsers in this module follow
Haskell's lexical rules - you might not always want this.


More information about the Beginners mailing list