
7 Jul
2008
7 Jul
'08
4:16 p.m.
"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