[Haskell-cafe] Packages and modules

Simon Peyton-Jones simonpj at microsoft.com
Mon Jun 26 07:10:14 EDT 2006

Simon and I have been thinking about fixing this, and we think we might
actually do so for GHC 6.6.  Your message provoked us to write up the
design.  It's here
Feedback welcome

It's worth reading the old threads; for example
But there are many others!


| -----Original Message-----
| From: haskell-cafe-bounces at haskell.org
[mailto:haskell-cafe-bounces at haskell.org] On Behalf Of Brian
| Hulley
| Sent: 25 June 2006 10:16
| To: Haskell-cafe
| Subject: [Haskell-cafe] Packages and modules
| Hi -
| At the moment there is a problem in that two packages P and Q could
| the same hierarchical module eg Data.Foo, and the only way for user
code to
| ensure the "right" Data.Foo is used is to ensure that packages P and Q
| searched in the right order.
| However suppose P and Q also contain another module with the same
name, eg
| Data.Bar.
| And suppose a user module wants to use Data.Foo from P but Data.Bar
| Q!!!

More information about the Haskell-Cafe mailing list