
Good point. Fortunately, I'm testing everything on Tiger (10.4.10),
so this shouldn't be a problem.
-Judah
On Jan 9, 2008 2:13 PM, Manuel M T Chakravarty
Judah,
I completely agree that, at the least on the Mac, using editline is the best solution (as long all necessary functionality is supported).
I am wondering, though, whether you are testing on Tiger or Leopard. When looking at the readline-emulation API of editline after upgrading to Leopard, I had the impression that it included much more functionality than it did on Tiger.
Manuel
On Jan 9, 2008 12:59 AM, Christian Maeder
wrote: By the way I've the following lines in my ~/.ghci from http://hackage.haskell.org/trac/ghc/ticket/998
:m +System.Console.Readline Data.List getCompleterWordBreakCharacters >>= setCompleterWordBreakCharacters . Data.List.delete '/' :m -System.Console.Readline Data.List
Does this work with libedit, too?
Christian
Hm... It runs, but doesn't have any effect. It looks like you need to use setBasicWordBreakCharacters instead of setCompleterWordBreakCharacters. (ghci sets both, which is why I didn't notice this before.)
Note that with my fix to #998 (sent to cvs-ghc), that hack should no longer be necessary.
-Judah