
18 Dec
2012
18 Dec
'12
3:58 a.m.
I tried file = do res <- endBy (try cell) (char ',') l <- lastCell eof return res cell = many1 (noneOf ",") lastCell = many1 (noneOf "\n") But that does not work because cell succeeds on the last cell. I can replace the endBy by many (try $ do {a <- cell; string ","; return a}) Nathan On 12/18/2012 08:21 AM, Karl Voelker wrote:
On Mon, Dec 17, 2012 at 2:28 AM, Nathan Hüsken
wrote: Still ... I can not do it with "endBy", can I?
I think you can. What have you tried with endBy that didn't work?
-Karl