[Haskell-cafe] A few questions on primes generating.

Alexis Hazell dry.green.tea at gmail.com
Mon Aug 13 10:45:59 EDT 2007


On Tuesday 14 August 2007 00:22, L.Guo wrote:

> 2) We have this type definition :
>     pureSieve :: Int -> Int
>    Why there is no error (type mismatch) of this call in func main :
>     pureSieve 10000000

The Haskell Report says that an Int covers at least the range [- 2^29, 2^29 - 
1], which that number is well within . . . . why do you think it should 
report a type error? 


Alexis.


More information about the Haskell-Cafe mailing list