
23 Oct
2006
23 Oct
'06
11:07 a.m.
On Sun, 22 Oct 2006, Bulat Ziganshin 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
currently we are forced to make separate sections for import and use:
#if HUGS import Hugs.Base #elseif GHC import GHC.Base #endif
#if HUGS addInt = hugsAddInt #elseif GHC addInt = ghcAddInt #endif
We just need a system for plugging together system-dependent modules, that's all. We do not need preprocessor hacks for this issue: http://www.haskell.org/pipermail/haskell-cafe/2006-August/017503.html