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

Achim Schneider barsoap at web.de
Mon Jan 5 07:51:29 EST 2009


Ketil Malde <ketil at malde.org> wrote:

> 
> >> Achim Schneider <barsoap at web.de> writes:
> 
> >> > import [qualified] module Foo [as F] [hiding(baz)] where
> >> > 	bar = undefined
> >> > 	baz = bar
> 
> >> Why do you want the 'where' there?  
> 
> > Because the module definition syntax is "module Foo[(exports]
> > where"... technically, it's not necessary, but it's nice.
> 
> Right - I missed the 'module' and just read it as an import
> statement.  Clearly your proposal here goes beyond mine, what are the
> advantages? I.e, what's the rationale for syntactical changes instead
> of
> 
module Foo where
	[...]

import Foo

just doesn't look elegant to my eyes so I'd like to have it in one
statement, that's all.


-- 
(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