logo       

Re: ghci feature suggestion: msg#00105

lang.haskell.glasgow.bugs

Subject: Re: ghci feature suggestion

On Wed, 2006-08-16 at 17:45 +0100, Frederik Eaton wrote:
> Hi,
>
> I've been thinking that it would be nice if I could give ghci on the
> command line a list of commands to run initially when it starts. This
> way, I could make shell aliases to invoke ghci with project-specific
> configurations, with the appropriate modules loaded automatically.
>
> Is something like this already possible?

GHCi can read commands from a .ghci or $HOME/.ghci files. See the manual
about that feature:

http://www.haskell.org/ghc/docs/latest/html/users_guide/ghci-dot-files.html


If that's not enough then perhaps you could send in a patch to add
-with-dot-ghci-file $FILE or something along those lines.

Duncan


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise