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 _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs