... | ... | @@ -35,7 +35,7 @@ That means that module A.B.C could exist \*both\* in package P1 and in P2. And b |
|
|
The authors of packages P1 and P2 didn't need to know about each other, and don't need to choose globally unique module names.
|
|
|
|
|
|
|
|
|
The fundamental thing GHC will need to do is to include the package name (and version) into the names of entities the package defines. That means that when compiling a module M you must say what package it is part of:
|
|
|
For this to work, GHC must incorporate the package name (and version) into the names of entities the package defines. That means that when compiling a module M you must say what package it is part of:
|
|
|
|
|
|
```wiki
|
|
|
ghc -c -package package-name P1 C.hs
|
... | ... | |