
Hello, I raised this on trac ( https://ghc.haskell.org/trac/ghc/ticket/9089 ), but it seems it did not get much attention, but surelly I'm not the only one who finds this useful. With this little change, if there is a .ghci_history in the folder where you launch ghci it will use it instead of the global ~/.ghc/ghci_history. So, if you keep jumping from one project folder to the other, you can have a project specific history on each one (if you want). If you do not create a local .ghci_history file on that folder, the behaviour is exactly the same as it was before. Thus, this is somewhat identical to the local .ghci file. This, coupled with finally discovering the well hidden possibility of increasing the history size: http://trac.haskell.org/haskeline/wiki/UserPrefs Has vastly improved my ghci workflow. What do you think? João

I really need this. On Tue 27 May 2014 17:40:15 BST, João Cristóvão wrote:
Hello,
I raised this on trac ( https://ghc.haskell.org/trac/ghc/ticket/9089 ), but it seems it did not get much attention, but surelly I'm not the only one who finds this useful.
With this little change, if there is a .ghci_history in the folder where you launch ghci it will use it instead of the global ~/.ghc/ghci_history. So, if you keep jumping from one project folder to the other, you can have a project specific history on each one (if you want).
If you do not create a local .ghci_history file on that folder, the behaviour is exactly the same as it was before. Thus, this is somewhat identical to the local .ghci file.
This, coupled with finally discovering the well hidden possibility of increasing the history size:
http://trac.haskell.org/haskeline/wiki/UserPrefs
Has vastly improved my ghci workflow.
What do you think?
João _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

If you're confortable enough with compiling ghc on your own, the patch
(over 7.8.2) I submitted seems to work just fine.
Cheers
2014-05-27 19:48 GMT+01:00 Niklas Hambüchen
I really need this.
On Tue 27 May 2014 17:40:15 BST, João Cristóvão wrote:
Hello,
I raised this on trac ( https://ghc.haskell.org/trac/ghc/ticket/9089 ), but it seems it did not get much attention, but surelly I'm not the only one who finds this useful.
With this little change, if there is a .ghci_history in the folder where you launch ghci it will use it instead of the global ~/.ghc/ghci_history. So, if you keep jumping from one project folder to the other, you can have a project specific history on each one (if you want).
If you do not create a local .ghci_history file on that folder, the behaviour is exactly the same as it was before. Thus, this is somewhat identical to the local .ghci file.
This, coupled with finally discovering the well hidden possibility of increasing the history size:
http://trac.haskell.org/haskeline/wiki/UserPrefs
Has vastly improved my ghci workflow.
What do you think?
João _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (2)
-
João Cristóvão
-
Niklas Hambüchen