Integrating editline with ghc
Manuel M T Chakravarty
chak at cse.unsw.edu.au
Thu Jan 17 20:22:28 EST 2008
Christian Maeder:
> Judah Jacobson wrote:
>> - System.Console.Editline.Readline contains the readline APIs
>> provided
>> by the editline library (mostly a cut/paste of
>> System.Console.Readline).
>
> I would like to see a restructuring of the old readline
> package:
>
> 1. a _new_ readline package that only contains the interface that
> can be
> implemented using libeditline _or_ libreadline. If this package is
> call
> "readline" (with a new version number) most libraries i.e. like
> Shellac
> would not need modifications.
I disagree. Readline should stay as it is. (Why force existing
readline users who use functionality not supported by editline's
emulation layer to change the package they are using?)
Instead, we should have a new module whose interface coincides with
editline's readline emulation. Everybody who wants to use editline
when available and readline only if editline is not available can then
use that new module (which I called EditReadline in my previous
post). GHC will be one of these programs.
Manuel
More information about the Glasgow-haskell-users
mailing list