[Haskell-cafe] Local .ghci_history

João Cristóvão jmacristovao at gmail.com
Thu May 29 13:03:40 UTC 2014

If you're confortable enough with compiling ghc on your own, the patch
(over 7.8.2) I submitted seems to work just fine.

2014-05-27 19:48 GMT+01:00 Niklas Hambüchen <mail at nh2.me>:
> 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 at haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell-cafe

More information about the Haskell-Cafe mailing list