>>>>> "Marcin" == Marcin 'Qrczak' Kowalczyk <[EMAIL PROTECTED]> writes:

    > What do you think would be the best representation of the buffer for
    > such a crazy idea as a text editor in Haskell?

I don't think its crazy.  I thought that one could start with
something simple, like a "before" list and an "after list".  Sometime
ago, there was an article by Bernard Sufrin, which specied a simple
editor various derivatives of which were in use in Oxford over a
decade ago.  If I recall the article accurately, it was so clearly written that
you could more or less just transcribe it into a functional program.
Perhaps one can find it from
  http://www.comlab.ox.ac.uk/oucl/people/bernard.sufrin.html

I would recommend starting with that, and then considering more
efficient data structures later on, if you have to.  One could
some kind of ANSI screen handling stuff - there were some examples
among the hugs demos once.

-- Peter


Reply via email to