ghci module list
Frederik Eaton
frederik at a5.repetae.net
Tue Dec 20 20:11:21 EST 2005
Hi everyone,
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
Frederik
More information about the Glasgow-haskell-bugs
mailing list