logo       

RE: package treating: msg#00047

lang.haskell.glasgow.bugs

Subject: RE: package treating


> I presumed that, as the ghci
> command loads all usable libraries, then
>
> ghci -package-conf myPackage.conf -package myPackage
>
> will load all that `ghci' loads +
> what is specified in myPackage.conf.
>
> But, probably, this is not (should not be?) so: the option
>
> -package-conf myPackage.conf
>
> fully replaces the configuration, and the package search is done
> only according to what is specified in
> myPackage.conf
> , right?

No, packages are loaded on a demand-driven basis. Packages must have
correct dependencies specified, so that GHC can ensure that they are
loaded in dependency order. The -package-conf flag does not cause the
configuration to be "fully replaced".

Cheers,
Simon


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise