sclv
sclv

Reputation: 38901

Persistent console history in ghci

On 6.12.2, this just worked for me, I think. But now I'm on a new box with 6.12.3 (generic unix binary), and there's obviously some setting I'm missing.

I have a console history in ghci within a single session (i.e. execution of ghci), but this history isn't saved and reloaded between sessions, as it used to be. I can't keep track if ghci is using readline, editline, or haskeline even, so I'm not quite sure where to start in terms of fixing this.

Upvotes: 12

Views: 2397

Answers (2)

Sean Seefried
Sean Seefried

Reputation: 1279

This might not be of much help but have you checked whether the ghci_history file is being written to in ~/.ghc/ghci_history?

Upvotes: 11

alvaro g
alvaro g

Reputation: 533

The Sean Seefried's answer does not work in Windows systems because ghc has its home in %APPDATA%\ghci (in my case, C:\Users\me\AppData\Roaming\ghci).

The file can be found in there: ghci_history

Upvotes: 0

Related Questions