<br><font size=2 face="sans-serif">you need to write a parser.</font>
<br>
<br><font size=2 face="sans-serif">Parser is a popular library on hackage
that should do what you want. (I have never used it though.)</font>
<br>
<br><font size=2 face="sans-serif">Or read</font>
<br>
<br><font size=2 face="sans-serif">http://citeseer.ist.psu.edu/50754.html</font>
<br>
<br><font size=2 face="sans-serif">and adopt the code from there to your
purposes. </font>
<br>
<br><font size=2 face="sans-serif">I found this paper extremely helpful
when I needed to build a parser.</font>
<br>
<br><font size=2 face="sans-serif">t. </font>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Ryan Bloor &lt;ryanbloor@hotmail.com&gt;</b>
</font>
<br><font size=1 face="sans-serif">Sent by: haskell-cafe-bounces@haskell.org</font>
<p><font size=1 face="sans-serif">12/06/2007 12:06 PM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">&lt;haskell-cafe@haskell.org&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">[Haskell-cafe] parser</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2 face="Tahoma">hi<br>
 <br>
Can anyone advise me on how to check whether a string contains ints, chars,
bools, etc.... <br>
 <br>
&quot;2345 + 6767&quot; shoudl give IntAdd (2345) (6767)<br>
&quot;2345&quot; should give IntT 2345<br>
 <br>
Ryan<br>
<br>
</font>
<hr><font size=2 face="Tahoma">Get closer to the jungle. </font><a href="http://entertainment.uk.msn.com/tv/realitytv/im-a-celebrity/" target=_new><font size=2 color=blue face="Tahoma"><u>I'm
a Celebrity Get Me Out Of Here!</u></font></a><tt><font size=2>_______________________________________________<br>
Haskell-Cafe mailing list<br>
Haskell-Cafe@haskell.org<br>
http://www.haskell.org/mailman/listinfo/haskell-cafe<br>
</font></tt>
<br>
<br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">---</span><br>
<br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">This e-mail may contain confidential and/or privileged information. If you </span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">are not the intended recipient (or have received this e-mail in error) </span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">please notify the sender immediately and destroy this e-mail. Any </span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">unauthorized copying, disclosure or distribution of the material in this </span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">e-mail is strictly forbidden.</span><br>