Changes between Version 28 and Version 29 of Commentary/Packages/GhcPackagesProposal


Ignore:
Timestamp:
Sep 27, 2006 3:33:07 PM (8 years ago)
Author:
simonpj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Packages/GhcPackagesProposal

    v28 v29  
    3333For 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: 
    3434{{{ 
    35   ghc -c -package package-name P1 C.hs 
     35  ghc -c -package-name P1 C.hs 
    3636}}} 
    3737Then C.o will contain symbols like "{{{P1.A.B.C.f}}}" etc.  In effect, the "original name" of a function {{{f}}} in module {{{M}}} of package {{{P}}} is {{{<P,M,f>}}}.