
31 Oct
2010
31 Oct
'10
2:58 p.m.
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. http://www.haskell.org/onlinereport/modules.html#sect5.6.1 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. -Isaac