loading non-existing module in 5.02
Simon Marlow
simonmar at microsoft.com
Thu Sep 27 05:29:04 EDT 2001
> Is this a bug in ghc-5.02-linux-i386-unknown
> ?
> A.hs contains module A where a = True
>
> ghci
> ...
> Prelude> :l A
> Source file changed or recompilation check turned off
> Compiling A ( A.hs, interpreted )
> ...
> 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.
Cheers,
Simon
More information about the Glasgow-haskell-bugs
mailing list