logo       

Re: Text.ParserCombinators.Parsec requires -package text.: msg#00038

lang.haskell.glasgow.bugs

Subject: Re: Text.ParserCombinators.Parsec requires -package text.

Alastair Reid wrote (snipped):
Why is it necessary to provide -package options at all?

ghc-pkg knows about all the packages in your system so it could just implicitly add -package $x for every package when compiling or linking.

My current need at least is to disable the lang, text, data packages and
so on so I can see if my code compiles even when GHC nukes "FiniteMap"
and only allows me to call it "Data.FiniteMap". As I expect it will
one of these days.

One reason I think it might still be necessary to retain -package options
is that otherwise code will stop working if a package is added to the
package.conf file which has modules with the same name as those
the user is working with. The trouble is that the analogy with
the standard Prelude does not work; compiler writers are not supposed
to add names to the standard prelude, but they definitely do need to
be able to add packages to the package.conf files they distribute.


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

News | FAQ | advertise