[commit: ghc] master: Comments only (fac11f8)
git at git.haskell.org
git at git.haskell.org
Thu Jul 30 10:02:11 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/fac11f853598c1decdf8d0facba5f25a6219f11f/ghc
>---------------------------------------------------------------
commit fac11f853598c1decdf8d0facba5f25a6219f11f
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Wed Jul 29 16:02:25 2015 +0100
Comments only
>---------------------------------------------------------------
fac11f853598c1decdf8d0facba5f25a6219f11f
libraries/base/GHC/Enum.hs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libraries/base/GHC/Enum.hs b/libraries/base/GHC/Enum.hs
index 2ba6dda..a11d4f8 100644
--- a/libraries/base/GHC/Enum.hs
+++ b/libraries/base/GHC/Enum.hs
@@ -689,7 +689,7 @@ instance Enum Integer where
"enumDeltaToInteger1" [1] enumDeltaToInteger1FB (:) [] = enumDeltaToInteger1
#-}
-{-
+{- Note [Enum Integer rules for literal 1]
The "1" rules above specialise for the common case where delta = 1,
so that we can avoid the delta>=0 test in enumDeltaToIntegerFB.
Then enumDeltaToInteger1FB is nice and small and can be inlined,
More information about the ghc-commits
mailing list