Is it possible to load bindings into ghci

Tomasz Zielonka t.zielonka at students.mimuw.edu.pl
Wed Aug 25 05:57:07 EDT 2004


On Wed, Aug 25, 2004 at 09:09:40AM +0100, Simon Marlow wrote:
> On 24 August 2004 12:47, Andreas Marth wrote:
> 
> > At the moment it happens that I use an unfinished program with ghci.
> > And each time I start GHCi, I have to introduce the same bindings aka
> > 'cont <- readFile "myFile"' ...
> > Is there a way to define them once in a File and then point GHCi to
> > it? (I need somme of the functions in the unfinished program so it has
> > to be after reading the program file.)
> 
> Like the '.' command in /bin/sh?  Yes, we ought to have something like
> that.  I'll get around to it at some point, unless anyone gets there
> first.

Dirty hack - you can put such bindings in ~/.ghci :)

Best regards,
Tom

-- 
.signature: Too many levels of symbolic links


More information about the Glasgow-haskell-users mailing list