summaryrefslogtreecommitdiff
path: root/libraries/base/GHC/Real.lhs
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/base/GHC/Real.lhs')
-rw-r--r--libraries/base/GHC/Real.lhs4
1 files changed, 4 insertions, 0 deletions
diff --git a/libraries/base/GHC/Real.lhs b/libraries/base/GHC/Real.lhs
index a54818f049..481125aa93 100644
--- a/libraries/base/GHC/Real.lhs
+++ b/libraries/base/GHC/Real.lhs
@@ -517,6 +517,10 @@ showSigned showPos p x
even, odd :: (Integral a) => a -> Bool
even n = n `rem` 2 == 0
odd = not . even
+{-# SPECIALISE even :: Int -> Bool #-}
+{-# SPECIALISE odd :: Int -> Bool #-}
+{-# SPECIALISE even :: Integer -> Bool #-}
+{-# SPECIALISE odd :: Integer -> Bool #-}
-------------------------------------------------------
-- | raise a number to a non-negative integral power