ANNOUNCE: GHC 7.0.1 Release Candidate 2

Isaac Dupree ml at
Sun Oct 31 14:58:58 EDT 2010

On 10/30/10 04:43, Bas van Dijk wrote:
> Which is to be expected because the Prelude is imported implicitly.

No it's not, because you import Prelude explicitly ("import Prelude   ( 
fromInteger )").  In any Haskell, Prelude is only implicitly imported if 
there are no explicit imports of Prelude in that module.

The only thing that could be called "redundant" is that when you write a 
number, it actually calls the thing defined as GHC.Num.fromInteger -- 
whether or not it has been imported --, which is incidentally the same 
thing as you import in that line "import Prelude ( fromInteger )"; And 
similarly for the other built-in syntax.


More information about the Glasgow-haskell-users mailing list