loading non-existing module in 5.02

Michael Weber michael.weber at post.rwth-aachen.de
Thu Sep 27 05:38:54 EDT 2001


On Thu, Sep 27, 2001 at 10:29:04 +0100, Simon Marlow wrote:
> >   A> :l X                         -- trying non-existing module
> >   can't find module `X'           -- all right
> >   Prelude> :m A
> >   `A' is not currently loaded     -- ?
> >   Prelude>
> 
> The ':load' command begins by unloading all of the existing modules -
> this is specified quite clearly in the documentation.  I think this is
> the right behaviour, because to hold on to them might cause a space
> leak.

Would it be possible to check for the existance of X first, and unload
the modules only iff it actually exists and can be loaded?


Cheers,
M/




More information about the Glasgow-haskell-bugs mailing list