Module imports anywhere
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
If imports were allowed everywhere, then would exports be allowed everywhere
too, for the same reasons?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-prime