On 4 October 2010 23:54, c8h10n4o2 <asaferibei...@ymail.com> wrote:

> By the way, there is a parser that returns [String] for my case?
>

If you are trying to parse strings (of alphaNum's) separated by commas, you
can use "many alphaNum" (or "many1 alphaNum" depending on what you want)
instead of simply using alphaNum. The type of the complete parser will then
be Parser [String].

alphaNum :: Parser Char

alphaNums :: Parser String
alphaNums = many alphaNum

alphaNums1 :: Parser String
alphaNums1 = many1 alphaNum

Ozgur
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to