Add -XPackageImports, new syntax for package-qualified imports
authorSimon Marlow <marlowsd@gmail.com>
Tue, 5 Aug 2008 13:35:44 +0000 (13:35 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 5 Aug 2008 13:35:44 +0000 (13:35 +0000)
commit1867a7bb8c59ea514b4f47f5434842543933ec9a
tree4f622970ba88bf408e2884d0ea3819230abf1232
parentea9a5be67418ab76c4fa33736a3335b517c9e7f9
Add -XPackageImports, new syntax for package-qualified imports

Now you can say

  import "network" Network.Socket

and get Network.Socket from package "network", even if there are
multiple Network.Socket modules in scope from different packages
and/or the current package.

This is not really intended for general use, it's mainly so that we
can build backwards-compatible versions of packages, where we need to
be able to do

module GHC.Base (module New.GHC.Base) where
import "base" GHC.Base as New.GHC.Base
13 files changed:
compiler/hsSyn/HsImpExp.lhs
compiler/iface/LoadIface.lhs
compiler/main/DynFlags.hs
compiler/main/Finder.lhs
compiler/main/GHC.hs
compiler/main/HeaderInfo.hs
compiler/main/HscStats.lhs
compiler/main/Packages.lhs
compiler/parser/Parser.y.pp
compiler/rename/RnEnv.lhs
compiler/rename/RnNames.lhs
docs/users_guide/flags.xml
docs/users_guide/glasgow_exts.xml