Compiling GHC 6.8.3 on OS X with readline support

Hey all, When compiling GHC 6.8.3 on OS X, I ended up with a GHCi without readline support. That makes interacting quite hard, especially because the Backspace-key didn't even work. With some help on irc from Baughn and by reading a blog post from Paul Brown, I managed to get readline working after all. After installing readline from fink, I had to pass the following options to configure: ./configure --with-readline-includes=/sw/include/readline --with- readline-libraries=/sw/lib After that make and sudo make install worked just fine, and I had readline again! I wrote this down in case anybody else has had the same problems. -chris

"rlwrap" adds readline support to everything. On 7 Jul 2008, at 16:17, Chris Eidhof wrote:
Hey all,
When compiling GHC 6.8.3 on OS X, I ended up with a GHCi without readline support. That makes interacting quite hard, especially because the Backspace-key didn't even work. With some help on irc from Baughn and by reading a blog post from Paul Brown, I managed to get readline working after all.
After installing readline from fink, I had to pass the following options to configure:
./configure --with-readline-includes=/sw/include/readline --with- readline-libraries=/sw/lib
After that make and sudo make install worked just fine, and I had readline again! I wrote this down in case anybody else has had the same problems.
-chris
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

"rlwrap" adds readline support to everything.
Well, yes, see the GHCi wiki for how to augment 'rlwrap ghci' with some basic completion support (filenames, flags, module names): http://www.haskell.org/haskellwiki/GHC/GHCi#rlwrap_-_what_to_try_when_your_G... but is there a way to make rlwrap's completion context-sensitive? As with bash's complete command, for instance, I'd like to be able to tell rlwrap that :load wants filenames, while :module wants module names, and :set wants settable things. If your ghci is readline/editline enabled, you get quite specific support (or so I gather from the source code..), while rlwrap seems to throw everything in one pot. That said, rlwrap is still a good workaround, Claus
participants (3)
-
Chris Eidhof
-
Claus Reinke
-
Miguel Mitrofanov