Re: Integrating editline with ghc

2008-01-22 Thread Christian Maeder
(my previous mail went to the bugs list by accident) Christian Maeder wrote: > I would like to know from package maintainers if there packages can be > easily ported from libreadline to libedit. > > The best indication for this would be if the package is also happy with > a restricted interface o

Re: Integrating editline with ghc

2008-01-22 Thread Yitzchak Gale
Christian Maeder wrote: > 3. if ghci is going to use editline... then readline would not > need to be a core package und users might need to > install package readline explicitly. OK, I get it. Even if we leave readline as it is, so that the package system will theoretically not force the person

Re: Integrating editline with ghc

2008-01-22 Thread Christian Maeder
Yitzchak Gale wrote: > We should not cause people's programs to break silently by > changing a fundamental API, unless there is no alternative. > In this case there is a reasonable alternative. Anyone who wants > to change over to editline - native or readline-compatible - can > easily do so, at th

Re: Integrating editline with ghc

2008-01-22 Thread Simon Marlow
Christian Maeder wrote: Simon Marlow wrote: It would be a bad idea to remove functionality from the readline package. It's a binding to the GNU readline library, and as such it does a fine job. I only want to move (not remove). I don't think it's necessary to remove (or move) anything from r

Re: Integrating editline with ghc

2008-01-22 Thread Yitzchak Gale
Christian Maeder wrote: >>> Where are the users that use the functionality not supported by >>> editline's emulation layer? (Shout now or be quiet ever after) > I only wanted to find out which user group would need to change readline > to editline and (if following my suggestion) which group read

Re: Integrating editline with ghc

2008-01-22 Thread Christian Maeder
Manuel M T Chakravarty wrote: > Christian Maeder: >> Manuel M T Chakravarty wrote: >>> Christian Maeder: 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 versio

Re: Integrating editline with ghc

2008-01-22 Thread Manuel M T Chakravarty
Christian Maeder: Manuel M T Chakravarty wrote: Christian Maeder: 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

Re: Integrating editline with ghc

2008-01-22 Thread Christian Maeder
Judah Jacobson wrote: > On OS X 10.4, I have readline.h,v 1.11 as the libedit readline > compatibility header. Can you please try linking a simple program > that uses System.Console.Editline.Readline on your Solaris machine and > see if it throws up any link errors? If so, I may be able to fix >

Re: Integrating editline with ghc

2008-01-21 Thread Judah Jacobson
On Jan 21, 2008 2:40 AM, Christian Maeder <[EMAIL PROTECTED]> wrote: > Judah Jacobson wrote: > > I think it will be much simpler if we keep the readline and editline > > packages as they are now, and possibly add a third readline-compat > > package which can use either one as a dependency. Then an

Re: Integrating editline with ghc

2008-01-21 Thread Christian Maeder
Simon Marlow wrote: > It would be a bad idea to remove functionality from the readline > package. It's a binding to the GNU readline library, and as such it does > a fine job. I only want to move (not remove). > For convenience, we would like there to be an API that can be supported > by both rea

Re: Integrating editline with ghc

2008-01-21 Thread Simon Marlow
Christian Maeder wrote: Depending on what the ghc team and the library maintainers decide, either "readline" has to be changed to "readline-compat" in *.cabal or (worse) we get packages Shellac-readline and Shellac-editline or (more worse) Shellac-readline stays as is and I have to fiddle with e

Re: Integrating editline with ghc

2008-01-21 Thread Christian Maeder
Christian Maeder wrote: > Depending on what the ghc team and the library maintainers decide, > "readline" has to be changed to "readline-compat" in *.cabal Maybe someone could point out how the conditional build-depends entry would look like in Shellac-readline.cabal if readline is to be used for

Re: Integrating editline with ghc

2008-01-21 Thread Christian Maeder
Yitzchak Gale wrote: > Hi Christian, > > Christian Maeder wrote: >> ...Even better if the current package readline is renamed to old-readline >> and readline-compat to readline. > > I have been trying to understand why you want to do > that. What would we gain? On Macs I want Shellac-readline to

Re: Integrating editline with ghc

2008-01-21 Thread Yitzchak Gale
Hi Christian, Christian Maeder wrote: > ...Even better if the current package readline is renamed to old-readline > and readline-compat to readline. I have been trying to understand why you want to do that. What would we gain? Thanks, Yitz ___ Glasgow-

Re: Integrating editline with ghc

2008-01-21 Thread Christian Maeder
Judah Jacobson wrote: > I think it will be much simpler if we keep the readline and editline > packages as they are now, and possibly add a third readline-compat > package which can use either one as a dependency. Then any project > (including GHC) can choose which of those packages to use, based

Re: Integrating editline with ghc

2008-01-18 Thread Judah Jacobson
On Jan 17, 2008 1:19 AM, Christian Maeder <[EMAIL PROTECTED]> wrote: > 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

Re: Integrating editline with ghc

2008-01-18 Thread Christian Maeder
Manuel M T Chakravarty wrote: > Christian Maeder: >> 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 modif

Re: Integrating editline with ghc

2008-01-17 Thread Manuel M T Chakravarty
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 cont

Re: Integrating editline with ghc

2008-01-17 Thread Manuel M T Chakravarty
Alex Young: Yitzchak Gale wrote: Isaac Dupree wrote: GHC is in no legal trouble whatsoever... only if proprietary Haskell code uses the readline library and doesn't switch to using the editline backend. Agreed. I didn't mean that GHC itself was ever in any legal trouble. But as a compiler,

Re: Integrating editline with ghc

2008-01-17 Thread Alex Young
Yitzchak Gale wrote: Isaac Dupree wrote: GHC is in no legal trouble whatsoever... only if proprietary Haskell code uses the readline library and doesn't switch to using the editline backend. Agreed. I didn't mean that GHC itself was ever in any legal trouble. But as a compiler, it must be poss

Re: Integrating editline with ghc

2008-01-17 Thread Felix Martini
On Jan 17, 2008 2:08 PM, Yitzchak Gale wrote: > I would hope that ghc will link to editline-ext on all platforms. Unfortunately it seems that editline cannot currently be build on Windows. I have tried to build the editline source from http://www.thrysoee.dk/editline/ with MinGW/msys. Pdcurses cou

Re: Integrating editline with ghc

2008-01-17 Thread Judah Jacobson
On Jan 17, 2008 6:00 AM, Christian Maeder <[EMAIL PROTECTED]> wrote: > > Yitzchak Gale wrote: > > Christian Maeder wrote: > >> The extended packages "2" could go under extra libs or hackageDB, while > >>"1" remains a boot package for ghc that can link to editline on macs > >> and readline under

Re: Integrating editline with ghc

2008-01-17 Thread Yitzchak Gale
Christian Maeder wrote: > ghc will link to "libedit" if it is available on your platform, but the > Haskell package will still have the name "readline" and give ghc all the > functionality it needs (without licence problems). > Only the current readline Haskell package needs "libreadline" and > sup

Re: Integrating editline with ghc

2008-01-17 Thread Yitzchak Gale
Isaac Dupree wrote: > GHC is in no legal trouble whatsoever... only if proprietary Haskell > code uses the readline library and doesn't switch to using the editline > backend. Agreed. I didn't mean that GHC itself was ever in any legal trouble. But as a compiler, it must be possible for users to c

Re: Integrating editline with ghc

2008-01-17 Thread Christian Maeder
Yitzchak Gale wrote: > Christian Maeder wrote: >> The extended packages "2" could go under extra libs or hackageDB, while >>"1" remains a boot package for ghc that can link to editline on macs >> and readline under linux, but has the same interface and package name! > > I would hope that ghc w

Re: Integrating editline with ghc

2008-01-17 Thread Isaac Dupree
Yitzchak Gale wrote: Christian Maeder wrote: The extended packages "2" could go under extra libs or hackageDB, while "1" remains a boot package for ghc that can link to editline on macs and readline under linux, but has the same interface and package name! I would hope that ghc will link to

Re: Integrating editline with ghc

2008-01-17 Thread Yitzchak Gale
Christian Maeder wrote: > The extended packages "2" could go under extra libs or hackageDB, while >"1" remains a boot package for ghc that can link to editline on macs > and readline under linux, but has the same interface and package name! I would hope that ghc will link to editline-ext on al

Re: Integrating editline with ghc

2008-01-17 Thread 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

Re: Integrating editline with ghc

2008-01-16 Thread Thorkil Naur
Hello, On Wednesday 16 January 2008 22:05, Judah Jacobson wrote: > Hi all, > > I have managed to build ghc using the initial release of the editline package: > > Hackage link: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/editline-0.1 > Haddock: http://code.haskell.org/editline/di

Re: Integrating editline with ghc

2008-01-16 Thread Manuel M T Chakravarty
Judah Jacobson: Hackage link: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/editline-0.1 Haddock: http://code.haskell.org/editline/dist/doc/html/editline/ As I've mentioned before, there are two independent modules: - System.Console.Editline is a very basic (and experimental) inter

Integrating editline with ghc

2008-01-16 Thread Judah Jacobson
Hi all, I have managed to build ghc using the initial release of the editline package: Hackage link: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/editline-0.1 Haddock: http://code.haskell.org/editline/dist/doc/html/editline/ As I've mentioned before, there are two independent modu