<br><div class="gmail_quote">On 4 October 2010 23:54, c8h10n4o2 <span dir="ltr">&lt;<a href="mailto:asaferibeiro4@ymail.com">asaferibeiro4@ymail.com</a>&gt;</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&#39;s) separated by commas, you can use &quot;<font class="Apple-style-span" face="&#39;courier new&#39;, monospace">many alphaNum</font>&quot; (or &quot;<font class="Apple-style-span" face="&#39;courier new&#39;, monospace">many1 alphaNum</font>&quot; depending on what you want) instead of simply using <font class="Apple-style-span" face="&#39;courier new&#39;, monospace">alphaNum</font>. The type of the complete parser will then be <font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Parser [String]</font>.</div>
<div><br></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">alphaNum :: Parser Char</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div>
<font class="Apple-style-span" face="&#39;courier new&#39;, monospace">alphaNums :: Parser String</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">alphaNums = many alphaNum</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">alphaNums1 :: Parser String</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">alphaNums1 = many1 alphaNum</font></div>
</div><div><br></div><div>Ozgur</div></div>