[commit: ghc] master: Update comment in GHC.Real (trac#14432) (0656cb4)
git at git.haskell.org
git at git.haskell.org
Thu Nov 9 23:35:13 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/0656cb4add7c45382f6a5c3234ad5c75d3e5f112/ghc
>---------------------------------------------------------------
commit 0656cb4add7c45382f6a5c3234ad5c75d3e5f112
Author: Bodigrim <andrew.lelechenko at gmail.com>
Date: Thu Nov 9 17:53:57 2017 -0500
Update comment in GHC.Real (trac#14432)
Reviewers: hvr, bgamari
Reviewed By: bgamari
Subscribers: rwbarton, thomie
GHC Trac Issues: #14432
Differential Revision: https://phabricator.haskell.org/D4171
>---------------------------------------------------------------
0656cb4add7c45382f6a5c3234ad5c75d3e5f112
libraries/base/GHC/Real.hs | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/libraries/base/GHC/Real.hs b/libraries/base/GHC/Real.hs
index 85a1602..f30a53e 100644
--- a/libraries/base/GHC/Real.hs
+++ b/libraries/base/GHC/Real.hs
@@ -527,9 +527,7 @@ x ^^ n = if n >= 0 then x^n else recip (x^(negate n))
be statically resolved to 0 or 1 are rare.
It might be desirable to have corresponding rules also for
- exponents of other types, in particular Word, but we can't
- have those rules here (importing GHC.Word or GHC.Int would
- create a cyclic module dependency), and it's doubtful they
+ exponents of other types (e. g., Word), but it's doubtful they
would fire, since the exponents of other types tend to get
floated out before the rule has a chance to fire.
More information about the ghc-commits
mailing list