
19 Jul
2010
19 Jul
'10
12:10 p.m.
On 19 July 2010 12:05, David Virebayre
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... digit1 :: Parser Int digit1 = liftM digitToInt digit digitList :: Parser [Int] digitList = many digit1 digitToInt should do less work than read - running read is effectively re-parsing the digits you have already parsed. Best wishes Stephen