ghci feature suggestion
Frederik Eaton
frederik at a5.repetae.net
Wed Aug 16 14:46:24 EDT 2006
> > 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.
It's not enough because I work on more than one thing at a time, and I
only have one home directory. I think the suggested option would be a
good idea, but unfortunately I don't have time to work on it.
Regards,
Frederik
--
http://ofb.net/~frederik/
More information about the Glasgow-haskell-bugs
mailing list