On 10/22/06, Bulat Ziganshin <bulat.ziganshin@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