Module imports anywhere
Brian Smith
brianlsmith at gmail.com
Mon Oct 23 11:44:11 EDT 2006
On 10/22/06, Bulat Ziganshin <bulat.ziganshin at gmail.com> wrote:
>
> Hello Henning,
>
> Sunday, October 22, 2006, 5:48:11 PM, you wrote:
>
> > I don't see the benefit of allowing imports anywhere at top-level.
>
> it is useful to move together imports and related code. say:
>
> #if HUGS
> import Hugs.Base
> addInt = hugsAddInt
> #elseif GHC
> import GHC.Base
> addInt = ghcAddInt
> #endif
If imports were allowed everywhere, then would exports be allowed everywhere
too, for the same reasons?
Regards,
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-prime/attachments/20061023/aa3a46a0/attachment.htm
More information about the Haskell-prime
mailing list