[Haskell-beginners] parsec question

David Virebayre dav.vire+haskell at gmail.com
Mon Jul 19 08:28:14 EDT 2010


On Mon, Jul 19, 2010 at 2:10 PM, Stephen Tetley
<stephen.tetley at gmail.com> wrote:
> On 19 July 2010 12:05, David Virebayre <dav.vire+haskell at gmail.com> wrote:
>
>> Note that he doesn't want "123456" to parse as the integer 123456, but
>> rather as the list of digits [ 1,2,3,4,5,6 ].
>
> Fair enough, I'd swap /digitToInt/ for read though...

Of course ! I just didn't know that function existed :) Now that I
think of it, that's not a good excuse. Converting a single char to an
int is not difficult, I just had made a quick reply without thinking
too much.

David.


More information about the Beginners mailing list