Proposal: NoImplicitPreludeImport

Ian Lynagh ian at well-typed.com
Tue May 28 18:08:17 CEST 2013


On Tue, May 28, 2013 at 08:58:29AM -0700, Johan Tibell wrote:
> 
> The likely practical result of this is that every module will now read:
> 
> module M where
> 
> #if MIN_VERSION_base(x,y,z)
> import Prelude
> #else
> import Data.Num
> import Control.Monad
> ...
> #endif
> 
> for the next 3 years or so.

Not so. First of all, if Prelude is not removed then you can just write
    import Prelude

But even this is not necessary during the transition period: see
    http://hackage.haskell.org/trac/haskell-prime/wiki/NoImplicitPreludeImport#Backwardscompatibility
for a way that backwards compatibility can be maintained, with
additional imports not being needed until code migrates to the
split-base packages.


Thanks
Ian
-- 
Ian Lynagh, Haskell Consultant
Well-Typed LLP, http://www.well-typed.com/



More information about the Haskell-prime mailing list