[Bug #133404] fromInteger :: Integer -> Int should fail on overflow
Wed, 21 Feb 2001 01:08:05 -0800
Bug #133404, was updated on 2001-Feb-21 01:08
Here is a current snapshot of the bug.
Project: The Glasgow Haskell Compiler
Bug Group: None
Submitted by: simonpj
Assigned to : nobody
Summary: fromInteger :: Integer -> Int should fail on overflow
Details: fromInteger 4000000000 :: Int gives -294967296
This is bad; it should really raise an exception.
I believe this is the case with all versions of GHC
For detailed info, follow this link: