views:

60

answers:

1

I use Ctrl p a lot instead of up arrow to go up on Terminal. How to make ghci support Ctrl p to go up?

I use ghci from ghc98 from port. Mac OS X 10.5.8.

+5  A: 

Customize haskeline, e.g.,

$ cat ~/.haskeline 
bind: ctrl-p up

To enable all the emacs bindings, you can specify that as a user preference:

$ cat ~/.haskeline
editMode: Emacs
Greg Bacon