ghci, sourcing

wld volodimir.rudenko at gmail.com
Mon Jun 5 15:26:33 EDT 2006


Hi,

On 6/5/06, Frederik Eaton <frederik at a5.repetae.net> wrote:
> Hi,
>
> Is there a way to source a file in ghci? I have a series of
> initialization commands which I would like to run every time I do a
> certain set of experiments, and I've put them in a file. Is it best
> just to copy and paste the file into ghci?
>

Please read Chapter 3 of The Glorious Glasgow Haskell Compilation
System User's Guide!
Look at Section 3.6 GHCi commands (esp. :def command)
and 3.8. The .ghci file.

HTH,
V.Rudenko
--
λ is the ultimate


More information about the Glasgow-haskell-users mailing list