On Sunday 22 May 2005 22:35, Shae Matijs Erisson wrote:
Mads Lindstrøm <mads_lindstroem@yahoo.dk> writes:
But we do not have to leave out ASCII based editors - atleast to begin with. You can be showing functions like sqrt using real math symbol and at the same time store your documents as ordinary Haskell sources, which can be read by any editor. This would of cause require the editor to have a faily big understanding of the Haskell language. And it can only go so far, some math stuff will require richer formats that cannot be translated nicely to ordinary Haskell sources.
This has been done, Luke Gorrie wrote pretty-lambda.el: http://www.emacswiki.org/cgi-bin/wiki/PrettyLambda
Jorge Adriano did something similar for Haskell with x-symbol: http://www.haskell.org/pipermail/haskell-cafe/2002-August/003237.html
Pugs is doing this directly: http://use.perl.org/~autrijus/journal/24762
For more exciting possibilities, the plan for the Yi editor is to have parser-based modes. That would allow you to do much more than what's mentioned above.
Sébastien Carlier also made an preprocessor for Haskell code using UTF-8 mathematical symbols: http://www.macs.hw.ac.uk/~sebc/unicode/ Cheers, Jérémy.