Can someone explain the following behaviour? Or is it a bug in hugs?
X690v5> (fromIntegral(toInteger(minBound::Int))::Int)
Program error: {primIntegerToInt (-2147483648)}
(15 reductions, 70 cells)
X690v5> (fromIntegral(toInteger((minBound::Int)+1))::Int)
-2147483647
(21 reductions, 29 cells)
X690v5> minBound::Int
-2147483648
(9 reductions, 19 cells)
Dominic.
-------------------------------------------------------------------------------------------------
21st century air travel http://www.britishairways.com
_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell