Skip to content

Revert to old key bindings in ghci

As of GHC 6.10.3, ghci uses Haskeline. Some of the key bindings that previously existed are no longer bound. For instance, C-p/C-n were previously bound to the same keys as up/down arrow respectively.

I have only tested this on Mac OS X 10.5, but I assume it is an issue for all OS's.

I would like C-p/C-n to be bound like they were previously.

The following lines in .haskeline do what I request:

bind: ctrl-p up bind: ctrl-n down

Trac metadata
Trac field Value
Version 6.10.3
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component GHCi
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information