Readline/Haskline

Hi, May be I am just being stupid and not hunting the right place but the latest ghc 6.10.3 package in arch does not expose the Readline library or any of its cousins. However ghci is working just fine with tab completion etc. I am not able to use it for programming. Regards ppk

On Wed, May 27, 2009 at 04:53:03PM +0530, Piyush P Kurur wrote:
May be I am just being stupid and not hunting the right place but the latest ghc 6.10.3 package in arch does not expose the Readline library or any of its cousins. However ghci is working just fine with tab completion etc. I am not able to use it for programming.
The Arch GHC package is not built against libedit (at least on x86_64) so the line editing packages aren't built. In the mean time, you can build your own ghc with editline support by: 1) Installing libedit: pacman -S libedit 2) Getting the GHC source: yaourt -G ghc if you don't have yaourt, download the files manually from the Arch SVN repo. 3) Building GHC: makepkg 4) Installing the package: pacman -U ghc-6.10.3-blah.pkg.tar.gz GHC's configuration script will pick up libedit and build the line editing package. Vegai: should libedit be added to the deps on the package? Cheers, Matt

Ignore me, insufficient caffiene levels. On Wed, May 27, 2009 at 09:22:33AM -0400, Matthew William Cox wrote:
The Arch GHC package is not built against libedit (at least on x86_64) so the line editing packages aren't built.
Since 6.10.3, ghc uses haskeline.
Vegai: should libedit be added to the deps on the package?
No, of course not. Matt

On Wed, May 27, 2009 at 04:53:03PM +0530, Piyush P Kurur wrote:
May be I am just being stupid and not hunting the right place but the latest ghc 6.10.3 package in arch does not expose the Readline library or any of its cousins. However ghci is working just fine with tab completion etc. I am not able to use it for programming.
Sorry for the confusion caused by my other reply. Since 6.10.3, ghc doesn't use an external readline/editline library. Install the package (haskeline perhaps?) using cabal or fetch it from the AUR. Matt
participants (2)
-
Matthew William Cox
-
Piyush P Kurur