|
Re: Text.ParserCombinators.Parsec requires -package text.: msg#00031lang.haskell.glasgow.bugs
Simon Peyton-Jones wrote: It's documented behaviour. Even though it is documented behaviour I think it is wrong. It looks as if we now have the rather complicated situation that "import Text.ParserCombinators.Parsec" will work during compilation without loading the package parsec *unless* one of the other modules being compile imports this module and uses Template Haskell. It will work during linking *if* you used --make, but otherwise you get some very user-unfriendly messages about undefined symbols. GHC's package system is good because it makes libraries available in a uniform way. The above complex rules just make things more complicated. People who have trouble typing "--package parsec" should learn to use Make. The solution someone else proposed of stashing extra information in the object file to help the linker just seems to me a recipe for more complexity, and in any case wouldn't work when packages only contain non-GHC object files. (Like some of mine.)
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: ghci forgets to close files sometimes, Simon Marlow |
|---|---|
| Next by Date: | RE: Text.ParserCombinators.Parsec requires -package text., Simon Marlow |
| Previous by Thread: | RE: Text.ParserCombinators.Parsec requires -package text., Simon Peyton-Jones |
| Next by Thread: | RE: Text.ParserCombinators.Parsec requires -package text., Simon Marlow |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |