Skip to content

Ghci should TAB-complete keywords, not only identifiers

When running ghci, the word "import" is not in the list generated by readline completion. Namely, if to type

> i

the suggestions that appear after pressing <TAB> are

id              isDenormalized  isNegativeZero
init            isIEEE          iterate
interact        isInfinite
ioError         isNaN

If to type

> im

then pressing <TAB> gives beep.

Also, if we have at prompt

> import q

pressing <TAB> does not produce any completion. I would expect to get

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