[Haskell-cafe] Re: Use of abbreviations in Haskell

Achim Schneider barsoap at web.de
Mon Jan 5 06:30:02 EST 2009


Ketil Malde <ketil at malde.org> wrote:

> > Implicit importing: submodule syntax implies adding an "import 
> > The.Module.Name" line at that point in the containing file.    
> 
> I'm not sure I agree with that, I don't see why we shouldn't treat
> these modules as ordinary modules.  One of the motivations for doing
> this is to qualify record labels - not being able to specify "import
> .. qualified" or "as ..." seems like rather a loss.

import [qualified] module Foo [as F] [hiding(baz)] where
	bar = undefined
	baz = bar


OTOH, the Ocaml folks are going to ridicule us even more. "Now they
redid the module system, and it's still second-class"


-- 
(c) this sig last receiving data processing entity. Inspect headers
for copyright history. All rights reserved. Copying, hiring, renting,
performance and/or quoting of this signature prohibited.




More information about the Haskell-Cafe mailing list