[Haskell-cafe] Re: Use of abbreviations in Haskell
ketil at malde.org
Mon Jan 5 07:44:14 EST 2009
>> 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
>> simply treat[ing] a file Foo.Bar as a concatenation of module
>> Foo.Bar and optionally modules Foo.Bar.*?
If I haven't seen further, it is by standing in the footprints of giants
More information about the Haskell-Cafe