Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure amount of command history saved by GHCi?

Tags:

haskell

ghci

By default, GHCi saves 100 lines of command history in ~/.ghc/ghci_history. Can I increase this number?

I'm using GHC 7.6.3 on GNU/Linux.

like image 370
ntc2 Avatar asked Nov 21 '13 22:11

ntc2


1 Answers

On my system (GNU/Linux, GHC 7.6.3), GHCi is built against the haskeline library. According to this document, it can be customised by editing the ~/.haskeline file:

maxhistorysize: Just 1000

like image 160
Mikhail Glushenkov Avatar answered Nov 04 '22 16:11

Mikhail Glushenkov