
5 Sep
2009
5 Sep
'09
1:14 a.m.
On Fri, Sep 4, 2009 at 6:08 PM, zaxis
I want to preload the module automatically when starting ghci. The module located in ~/work directory contains some functions i use everyday.
Now i use an alias: alias ghci='ghci -i ~/money/Money.hs' which works fine. However i feel there maybe are more elegant way.
thanks!
If the module is part of a package you can put 'import NameOfModule' in your ~/.ghc/.ghci file. That file contains commands that are run when ghci starts. I'm not sure if you can load a module that isn't installed. Alex