Hello: I wish to list all historical command in Prelude, in the way that any unix shell could in "history" command. I tried several guesses but failed. How can I do that?
Asked
Active
Viewed 493 times
0
-
3Do you mean in GHCi? – Ry- Feb 29 '16 at 00:57
1 Answers
4
Mine appears at ~/.ghc/ghci_history, although depending on your machine, it could be at a different place.

jamshidh
- 12,002
- 17
- 31
-
I don't seem to have a hidden .ghc under my home directory. Do I have to setup Prelude to make it record my commands? – vik santata Feb 29 '16 at 02:00
-
1What OS are you using? I actually found the file in question by typing something large and unique in ghci, then doing a grep for that word at the command line.... You could also do a "locate ghci_history", or even "find . | grep ghci_history" in your home directory. – jamshidh Feb 29 '16 at 03:48