>>>>> "Tommy" == Tommy Thorn <[EMAIL PROTECTED]> writes:

    > Indeed.  When I was getting into Haskell, I hacked the ansi.hs example
    > from the Hugs distribution to add editing.  Parts of the function
    > actually became simpler this way.
    .. hack snipped

Thats nice: maybe the next step would be to allow arbitrarily long
lines, and give "loop" another state argument which is the offset into
the buffer of the (one-dimensional) window we currently have into it.
Or something equivalent.  With luck, this would generalise to two
dimensions without too much extra fuss.  Does ansi do scrolling,
and such things?

If it was written using monadic IO, a simple screen editor would make
a rather nice example program for Haskell, and a basis for tuning and
further features.

Regards, 

Peter


Reply via email to