[Haskell-cafe] Re: Packages and modules

Aaron Denney wnoise at ofb.net
Thu Jul 6 16:07:16 EDT 2006


On 2006-07-06, Simon Marlow <simonmarhaskell at gmail.com> wrote:
>   a. we could put package names in module names as you suggest.  But
>      apart from sacrificing the second principle, this doesn't let
>      you import a module from a package without specifying the exact
>      version of the package ==> BAD.

Right.  There are occasions of course that I do want to specify
exact versions -- such as testing two versions side by side.

>   b. we could add compiler options that let you graft the module
>      namespace of a package into the global module namespace at
>      an arbitrary location.

This seems quite workable.

>   c. instead of grafting, we add language support to allow importing
>      modules from a particular package (crucically, you don't have
>      to specify the version).

The package still needs to be located somehow, and I don't like this
split between tools and language.

-- 
Aaron Denney
-><-



More information about the Haskell-Cafe mailing list