
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? Frederik -- http://ofb.net/~frederik/

Hi,
On 6/5/06, Frederik Eaton
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

Thanks, that's very handy! But also rather obscure... Frederik On Mon, Jun 05, 2006 at 10:26:33PM +0300, wld wrote:
Hi,
On 6/5/06, Frederik Eaton
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
participants (2)
-
Frederik Eaton
-
wld