projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix crash with (minBound :: Int*) `div (-1) as result is maxBound + 1.
[ghc-base.git]
/
GHC
/
Err.lhs-boot
diff --git
a/GHC/Err.lhs-boot
b/GHC/Err.lhs-boot
index
70afbb9
..
5b49c4e
100644
(file)
--- a/
GHC/Err.lhs-boot
+++ b/
GHC/Err.lhs-boot
@@
-4,7
+4,7
@@
-- Ghc.Err.hs-boot
---------------------------------------------------------------------------
-- Ghc.Err.hs-boot
---------------------------------------------------------------------------
-module GHC.Err( error, divZeroError ) where
+module GHC.Err( error, divZeroError, overflowError ) where
-- The type signature for 'error' is a gross hack.
-- First, we can't give an accurate type for error, because it mentions
-- The type signature for 'error' is a gross hack.
-- First, we can't give an accurate type for error, because it mentions
@@
-20,4
+20,7
@@
error :: a
-- divide by zero is needed quite early
divZeroError :: a
-- divide by zero is needed quite early
divZeroError :: a
+
+-- overflow is needed quite early
+overflowError :: a
\end{code}
\end{code}