projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
feb3468
)
Add an INLINE pragma on fromInteger on Int
author
simonpj@microsoft.com
<unknown>
Wed, 27 Oct 2010 19:39:31 +0000
(19:39 +0000)
committer
simonpj@microsoft.com
<unknown>
Wed, 27 Oct 2010 19:39:31 +0000
(19:39 +0000)
GHC/Num.lhs
patch
|
blob
|
history
diff --git
a/GHC/Num.lhs
b/GHC/Num.lhs
index
e16a350
..
5a94949
100644
(file)
--- a/
GHC/Num.lhs
+++ b/
GHC/Num.lhs
@@
-111,6
+111,7
@@
instance Num Int where
| n `eqInt` 0 = 0
| otherwise = 1
+ {-# INLINE fromInteger #-} -- Just to be sure!
fromInteger i = I# (toInt# i)
quotRemInt :: Int -> Int -> (Int, Int)