[Haskell-beginners] parsec question

Michael Mossey mpm at alumni.caltech.edu
Mon Jul 19 21:59:54 EDT 2010


In any case, thanks to David and Stephen for helping with my problem. 
Either solution is a neat improvement and an illustration for how the 
language can be used.

Mike

David Virebayre wrote:
> 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.
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners


More information about the Beginners mailing list