projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Inline more default methods
[ghc-base.git]
/
GHC
/
Num.lhs
diff --git
a/GHC/Num.lhs
b/GHC/Num.lhs
index
19514b6
..
bfc5458
100644
(file)
--- a/
GHC/Num.lhs
+++ b/
GHC/Num.lhs
@@
-75,6
+75,8
@@
class (Eq a, Show a) => Num a where
-- so such literals have type @('Num' a) => a@.
fromInteger :: Integer -> a
+ {-# INLINE (-) #-}
+ {-# INLINE negate #-}
x - y = x + negate y
negate x = 0 - x