ghci module list
Simon Marlow
simonmar at microsoft.com
Tue Jan 17 05:52:07 EST 2006
Frederik Eaton wrote:
> Ghci still seems to be erasing the "list of current imported modules"
> (I'm sorry I don't know what to call it) whenever I load a file;
> sometimes this even means removing the module corresponding to the
> just-loaded file from that list...
>
> *Fu.Vector> :load "Boost.hs"
> ...
> Ok, modules loaded: Fu.Vector, Fu.Prepose, Boost.
> *Fu.Vector> :m + Boost
> *Fu.Vector Boost> :load "Boost.hs"
> ...
> Ok, modules loaded: Fu.Vector, Fu.Prepose, Boost.
> *Fu.Vector> -- after the load command, Boost is missing
>
> On an aside, I was wondering about the feasibility of having some sort
> of feature resembling Octave's (and probably Matlab's) "function
> files" implementation, in which modified files are automatically
> reloaded by the interpreter. I guess a timestamp check could happen
> for each loaded module before ghci executes each new piece of
> command-line input. I wonder how useful people think this would be.
>
> $ ghci --version
> The Glorious Glasgow Haskell Compilation System, version 6.5.20051208
Since you're using HEAD, perhaps you could try this again? I believe
the behaviuor should be better now.
Cheers,
Simon
More information about the Glasgow-haskell-bugs
mailing list