Re: 6.10-candidate tested

2008-09-29 Thread Serge D. Mechveliani
On Wed, Sep 24, 2008 at 07:18:28PM +0200, Christian Maeder wrote:
 Serge D. Mechveliani wrote:
  On Wed, Sep 24, 2008 at 05:32:51PM +0200, Christian Maeder wrote:
  Do you have libedit on your linux machine (because I haven't)?
 
  
  I do not know what is  libedit  and where to find it.
 
 It's the library needed for editline
 http://hackage.haskell.org/cgi-bin/hackage-scripts/package/editline
 
 editline is the replacement of readline.
 http://hackage.haskell.org/cgi-bin/hackage-scripts/package/readline
 
  1. ghc-pkg list   does not show the  editline  package.
  2. The arrow keys and backspace do not work in  ghci.
  This is so -- on my machine, under Debian Linux.
 
 The advantage is ghci works without editline and readline. The
 disadvantage is if you want arrow keys and backspace to work, you should
 have installed http://www.thrysoee.dk/editline/ first.
 
  Is this due to some deficiency in Debian Linux installation or this is
  a bug in the GHC installation?
 
 A (debian) package manager could install editline (and gmp) before ghc.
 (Unfortunately user programs may depend on those extra libraries, too.)
 

As I recall, earlier, there were needed for GHC the shared libraries
gmp  and  libreadline.so*
As I understand, I need now to install the shared library  editline  
instead of  libreadline. Is this so?

But maybe, the installation procedure 
(configure  command or  make install  command) should
search for  editline, gmp, and such,  and report an error if the GHC 
installation does not find them?

-
Serge Mechveliani
[EMAIL PROTECTED]


___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


6.10-candidate tested

2008-09-24 Thread Serge D. Mechveliani
Dear GHC developers,

I have tested  ghc-6.10.0.20080921
on
* making it by ghc-6.8.2,
* making it by itself,
* the DoCon and Dumatel applications.

It looks all right.
Regards, 

-
Serge Mechveliani
[EMAIL PROTECTED]
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: 6.10-candidate tested

2008-09-24 Thread Serge D. Mechveliani
This was on Linux, Debian.

 I have tested  ghc-6.10.0.20080921
 on
 * making it by ghc-6.8.2,
 * making it by itself,
 * the DoCon and Dumatel applications.
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: 6.10-candidate tested

2008-09-24 Thread Serge D. Mechveliani
On Wed, Sep 24, 2008 at 05:32:51PM +0200, Christian Maeder wrote:
 Do you have libedit on your linux machine (because I haven't)?
 

I do not know what is  libedit  and where to find it.

 In order to check this:
 Does ghc-pkg list the editline package? (And do your arrow keys and
 backspace work in ghci?)
 

1. ghc-pkg list   does not show the  editline  package.
2. The arrow keys and backspace do not work in  ghci.
This is so -- on my machine, under Debian Linux.

Dear GHC developers, can you comment, please?
Is this due to some deficiency in Debian Linux installation or this is
a bug in the GHC installation?

Regards, 

-
Serge Mechveliani
[EMAIL PROTECTED]


  This was on Linux, Debian.   I have tested  ghc-6.10.0.20080921
  on 
  * making it by ghc-6.8.2,
  * making it by itself,
  * the DoCon and Dumatel applications.

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: 6.10-candidate tested

2008-09-24 Thread Christian Maeder
Serge D. Mechveliani wrote:
 On Wed, Sep 24, 2008 at 05:32:51PM +0200, Christian Maeder wrote:
 Do you have libedit on your linux machine (because I haven't)?

 
 I do not know what is  libedit  and where to find it.

It's the library needed for editline
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/editline

editline is the replacement of readline.
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/readline

 1. ghc-pkg list   does not show the  editline  package.
 2. The arrow keys and backspace do not work in  ghci.
 This is so -- on my machine, under Debian Linux.

The advantage is ghci works without editline and readline. The
disadvantage is if you want arrow keys and backspace to work, you should
have installed http://www.thrysoee.dk/editline/ first.

 Is this due to some deficiency in Debian Linux installation or this is
 a bug in the GHC installation?

A (debian) package manager could install editline (and gmp) before ghc.
(Unfortunately user programs may depend on those extra libraries, too.)

Christian

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: 6.10-candidate tested

2008-09-24 Thread Roman Cheplyaka
* Christian Maeder [EMAIL PROTECTED] [2008-09-24 19:18:28+0200]
 Serge D. Mechveliani wrote:
  On Wed, Sep 24, 2008 at 05:32:51PM +0200, Christian Maeder wrote:
  Do you have libedit on your linux machine (because I haven't)?
 
  
  I do not know what is  libedit  and where to find it.
 
 It's the library needed for editline
 http://hackage.haskell.org/cgi-bin/hackage-scripts/package/editline
 
 editline is the replacement of readline.
 http://hackage.haskell.org/cgi-bin/hackage-scripts/package/readline
 
  1. ghc-pkg list   does not show the  editline  package.
  2. The arrow keys and backspace do not work in  ghci.
  This is so -- on my machine, under Debian Linux.
 
 The advantage is ghci works without editline and readline. The
 disadvantage is if you want arrow keys and backspace to work, you should
 have installed http://www.thrysoee.dk/editline/ first.
 
  Is this due to some deficiency in Debian Linux installation or this is
  a bug in the GHC installation?
 
 A (debian) package manager could install editline (and gmp) before ghc.
 (Unfortunately user programs may depend on those extra libraries, too.)

libedit on Debian is very out-dated[1]. Haskell bindings (editline)
doesn't compile against it (at least I could not compile it).

  1. http://packages.qa.debian.org/e/editline.html
-- 
Roman I. Cheplyaka :: http://ro-che.info/
kzm: My program contains a bug. How ungrateful, after all I've done for it.
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: 6.10-candidate tested

2008-09-24 Thread Ian Lynagh

Hi Roman,

On Wed, Sep 24, 2008 at 08:35:50PM +0300, Roman Cheplyaka wrote:
 
 libedit on Debian is very out-dated[1]. Haskell bindings (editline)
 doesn't compile against it (at least I could not compile it).
 
   1. http://packages.qa.debian.org/e/editline.html

That's the wrong package; you need:

http://packages.qa.debian.org/libe/libedit.html


Thanks
Ian

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: editline vs haskeline (was: 6.10-candidate tested)

2008-09-24 Thread Judah Jacobson
On Wed, Sep 24, 2008 at 10:56 AM, Claus Reinke [EMAIL PROTECTED] wrote:
 The advantage is ghci works without editline and readline. The
 disadvantage is if you want arrow keys and backspace to work, you should
 have installed http://www.thrysoee.dk/editline/ first.

 libedit on Debian is very out-dated[1]. Haskell bindings (editline)
 doesn't compile against it (at least I could not compile it).

 There was also no working libedit for mingw last time I checked (shelarcy
 was working on a patch at the time - did that work out?).

 Would it be possible to use haskeline as a fallback/default,
 for future Ghc's?

 http://hackage.haskell.org/cgi-bin/hackage-scripts/package/haskeline

As the author of haskeline, integrating it into ghc is on my TODO
list. :-)  Note that the earliest this could happen would be
ghc-6.12.1, which won't be released for at least another year.

But just to reiterate:
1) Other than on Windows, libedit is widely available and compatible
(including Debian, which just needs the libedit-dev package).
2) The Windows console provides basic interaction even without
libedit, including arrow key left/right, history, delete key, etc.
(Tab completion of Haskell identifiers is the most glaring omission.)

-Judah
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: editline vs haskeline (was: 6.10-candidate tested)

2008-09-24 Thread Claus Reinke

Would it be possible to use haskeline as a fallback/default,
for future Ghc's?

http://hackage.haskell.org/cgi-bin/hackage-scripts/package/haskeline


As the author of haskeline, integrating it into ghc is on my TODO
list. :-) 


Good to hear!-)


Note that the earliest this could happen would be
ghc-6.12.1, which won't be released for at least another year.


Why that? It wouldn't change any APIs, and if you're afraid of
changing client programs that use ghci (is that likely? is the key set
different from editline? and for windows, you'd only be adding 
line editing functionality, not removing/changing any), you can

always put it behind an option.

Or is the API so different that you'd have to rewrite ghci? There
shouldn't be more than a handful locations affected, iirc, but they
are all tuned to readline/editline's imperative API.


But just to reiterate:
1) Other than on Windows, libedit is widely available and compatible
(including Debian, which just needs the libedit-dev package).
2) The Windows console provides basic interaction even without
libedit, including arrow key left/right, history, delete key, etc.
(Tab completion of Haskell identifiers is the most glaring omission.)


I don't mind whether it is editline or haskeline, but as a windows 
user, I'd like to have ghci's tab completion (it isn't limited to identifiers, 
either, I think) - ever since adding support for various Haskell-related 
completions in my Vim editing, I miss it when using ghci.. rlwrap is

ok, but no proper replacement.

Claus

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users