[Bug #133404] fromInteger :: Integer -> Int should fail on overflow
noreply@sourceforge.net
noreply@sourceforge.net
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
Category: None
Status: Open
Resolution: None
Bug Group: None
Priority: 1
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:
http://sourceforge.net/bugs/?func=detailbug&bug_id=133404&group_id=8032