<p>Ae you looking to do this in a web application, or client-side? Since one of your requirements is to display a typeset equation, that makes a bit of difference. In a web-based setting, the best way to do that is probably MathML, whereas a GUI will be a bit harder.</p>
<div class="gmail_quote">On Jun 9, 2011 8:24 AM, "Jacek Generowicz" <<a href="mailto:jacek.generowicz@cern.ch">jacek.generowicz@cern.ch</a>> wrote:<br type="attribution">> Greetings Cafe,<br>> <br>> What would you recommend as a Haskell-based means of interactively <br>
> reading and writing mathematical formulae?<br>> <br>> As a toy example, what might I use to write a program which presents <br>> the user with<br>> <br>> Please simplify the expression: \pi x^2 + 3\pi x^2<br>
> <br>> (Where the TeX-style expression would be presented with a greek pi and <br>> superscript twos on the xs.)<br>> <br>> The user should then have the ability to reply with something that <br>> looks like the result of TeXing<br>
> <br>> 5 \pi x^2<br>> <br>> Whatever means the user uses to enter this expression, he should be <br>> able to preview the "typeset" version of his input before submitting.<br>> <br>> Any ideas?<br>
> <br>> Thanks.<br>> <br>> <br>> _______________________________________________<br>> Haskell-Cafe mailing list<br>> <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>> <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div>