> In  ghc-5.00.1  linux-i386-unknown
> 
>     cd ~/t
>     ghci -package docon
>     ...
>     Prelude> :l B
> 
> loads the interpreted code.
> But there was applied earlier   make init
>                                 make docon
> 
> that builds a package in  ~/t/export/  with the 
>                                        HSdocon.o, libHSdocon.a  
> libraries.
> Should  ghci  load the .o code?

ghci loads the .o code for a package at startup time when you give the
appropriate -package option.

You can't load a module with :l if it is a package module, because these
modules are already loaded.  You can switch to a package module with :m,
though.

> Aslo changing to other directory gives the error
>   ...
>   Prelude> :l B
>   module `B' is a package module

I'm not sure I understand the question.  It looks like you might be
loading an interpreted version of module B, when it is already loaded as
part of the package - this is almost certainly a bad idea.

Cheers,
        Simon

_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to