[commit: packages/base] master: Remove misleading comment (ebe15a1)
git at git.haskell.org
git at git.haskell.org
Thu Mar 13 23:20:21 UTC 2014
Repository : ssh://git@git.haskell.org/base
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/ebe15a10191aafb2bcfd3e29f234cd72c152459c/base
>---------------------------------------------------------------
commit ebe15a10191aafb2bcfd3e29f234cd72c152459c
Author: Austin Seipp <austin at well-typed.com>
Date: Thu Mar 13 18:19:28 2014 -0500
Remove misleading comment
We actually can't inline at phase 0 here, because there's probably a
pretty good chance 'map' will get optimized away which will defeat the
rule.
Signed-off-by: Austin Seipp <austin at well-typed.com>
>---------------------------------------------------------------
ebe15a10191aafb2bcfd3e29f234cd72c152459c
GHC/Base.lhs | 3 ---
1 file changed, 3 deletions(-)
diff --git a/GHC/Base.lhs b/GHC/Base.lhs
index bb605e7..1c8e144 100644
--- a/GHC/Base.lhs
+++ b/GHC/Base.lhs
@@ -405,9 +405,6 @@ mapFB c f = \x ys -> c (f x) ys
-- section 6.4:
--
-- http://research.microsoft.com/en-us/um/people/simonpj/papers/ext-f/coercible.pdf
---
--- We rewrite late so the optimiser has as many chances as possible to
--- turn up instances of map coerce.
{-# RULES "map/coerce" map coerce = coerce #-}
More information about the ghc-commits
mailing list