Changes between Version 4 and Version 5 of Commentary/Packages/PackageMountingProposal


Ignore:
Timestamp:
Oct 26, 2006 3:38:40 AM (9 years ago)
Author:
Frederik
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Packages/PackageMountingProposal

    v4 v5  
    2020}}}
    2121
    22 In this proposal, it might instead have default mount point {{{Graphics.X11}}} and module namespace:
     22In this proposal, it might instead have default mount point {{{Graphics.X11}}} and (internal) module namespace:
    2323
    2424{{{
     
    3131}}}
    3232
    33 To most users of the X11 package, there would be no change - because of the mounting, modules in that package would still appear with the same names in places where the X11 package is used: {{{Graphics.X11.Types}}}, etc. However, if someone wanted to specify a different the mount point, he could use a special compiler option, for instance {{{-package-base}}}:
     33To most users of the X11 package, there would be no change - because of the mounting, modules in that package would still appear with the same names in places where the X11 package is imported: {{{Graphics.X11.Types}}}, etc. However, if someone wanted to specify a different the mount point, he could use a special compiler option, for instance {{{-package-base}}}:
    3434
    3535{{{
     
    4747(yielding {{{NewX11.Types}}}, {{{NewX11.Xlib}}}, ...; {{{OldX11.Types}}}, {{{OldX11.Xlib}}}, ...)
    4848
    49 However, usually the default mount point would be used. Additionally, Cabal syntax should be extended to support mounting. I would suggest that a mount point appear after a package in the Build-Depends clause of a cabal file:
     49However, usually the default mount point would be used. Additionally, Cabal syntax should be extended to support mounting. I would suggest that the optional mount point should appear after a package in the Build-Depends clause of a Cabal file:
    5050
    5151{{{
    52   Build-Depends: X11(NewX11)
     52  Build-Depends: X11(Graphics.Unix.X11.Xlib)
    5353}}}
    5454