haskell - 如何让ghci支持^p上去?

标签 haskell readline ghci haskeline

我经常使用 Ctrl p 而不是向上箭头在终端上向上移动。如何让ghci支持Ctrl p向上?

我使用来自 ghc98 端口的 ghci。 Mac OS X 10.5.8。

最佳答案

Customize haskeline,例如

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

要启用所有 emacs 绑定(bind),您可以将其指定为 user preference :

$ cat ~/.haskeline
editMode: Emacs

关于haskell - 如何让ghci支持^p上去?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2817639/

相关文章:

haskell - 使用类型同义词的函数定义是 "less polymorphic than expected"

haskell - 与 Haskell 中的 `System.Directory` 混淆

python - 为什么 GHC 测试套件是用 Python 而不是 Haskell 编写的?

haskell - liftM、lilftA等中首选什么

直接调用readline()的Tab补全

R:将不规则长度的文本转换为数据帧

haskell - 如何读取 ghci 类型错误?

haskell - 如何实现 'ex::Maybe [[Maybe a]] -> [[a]] '方法

haskell - 什么是解析错误: naked expression at top level?

haskell - 在 i386 macbook(雪豹)上使用 cabal readline 包