<br><div class="gmail_quote">On 4 October 2010 23:54, c8h10n4o2 <span dir="ltr"><<a href="mailto:asaferibeiro4@ymail.com">asaferibeiro4@ymail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div id=":2rr">By the way, there is a parser that returns [String] for my case?</div></blockquote><div><br></div><div>If you are trying to parse strings (of alphaNum's) separated by commas, you can use "<font class="Apple-style-span" face="'courier new', monospace">many alphaNum</font>" (or "<font class="Apple-style-span" face="'courier new', monospace">many1 alphaNum</font>" depending on what you want) instead of simply using <font class="Apple-style-span" face="'courier new', monospace">alphaNum</font>. The type of the complete parser will then be <font class="Apple-style-span" face="'courier new', monospace">Parser [String]</font>.</div>
<div><br></div><div><font class="Apple-style-span" face="'courier new', monospace">alphaNum :: Parser Char</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div>
<font class="Apple-style-span" face="'courier new', monospace">alphaNums :: Parser String</font></div><div><font class="Apple-style-span" face="'courier new', monospace">alphaNums = many alphaNum</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><div><font class="Apple-style-span" face="'courier new', monospace">alphaNums1 :: Parser String</font></div><div><font class="Apple-style-span" face="'courier new', monospace">alphaNums1 = many1 alphaNum</font></div>
</div><div><br></div><div>Ozgur</div></div>