[Haskell-cafe] Strange results when trying to create large Bool arrays.

Ketil Malde ketil at ii.uib.no
Thu Jul 12 04:19:43 EDT 2007


On Wed, 2007-07-11 at 10:55 -0700, Bryan O'Sullivan wrote:

> In a similar vein, I was initially perplexed when I 
> found that an expression like this produces garbage instead of an error:
> 
>    read "11111111111111111111111111111111111" :: Int
> 
> I have not seen a lot of interest expressed in fixing this sort of 
> misbehaviour, which jars a little with the usual emphasis on stringency 
> and testing.

I'd really like to have errors on overflow, at least as an option, even
if it is costly in terms of performance.  Is there a Trac ticket or
something for this?

-k



More information about the Haskell-Cafe mailing list