[Haskell-cafe] Qualified import syntax badly designed (?)

Stuart Cook scook0 at gmail.com
Wed Jul 9 08:43:09 EDT 2008


On Wed, Jul 9, 2008 at 10:01 AM, Neil Mitchell <ndmitchell at gmail.com> wrote:
> It seems that the qualified import syntax is a bit awkward. At the
> moment, its common to see:
>
> import qualified Data.Map as M
> import Data.Map(Map)
>
> i.e. import a module, give it an alias (M), and put some things in the
> current namespace (Map).

Incidentally, I sometimes find myself writing this:

  import Data.Map (Map) ; import qualified Data.Map as M

It's not perfect, but at least it lines up with my other imports a
little better.


Stuart


More information about the Haskell-Cafe mailing list