[commit: ghc] master: Change a comment referring falsely to seq (74a6a8a)
git at git.haskell.org
git at git.haskell.org
Tue Nov 18 01:20:14 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/74a6a8a979837d1344fc3236ad6fc4ca76ea49a7/ghc
>---------------------------------------------------------------
commit 74a6a8a979837d1344fc3236ad6fc4ca76ea49a7
Author: David Feuer <David.Feuer at gmail.com>
Date: Mon Nov 17 19:19:18 2014 -0600
Change a comment referring falsely to seq
Summary: Instead, describe what it actually does.
Reviewers: austin, ekmett, simonpj, hvr
Reviewed By: austin, ekmett
Subscribers: simonpj, thomie, carter
Projects: #ghc
Differential Revision: https://phabricator.haskell.org/D448
>---------------------------------------------------------------
74a6a8a979837d1344fc3236ad6fc4ca76ea49a7
libraries/base/GHC/Base.hs | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libraries/base/GHC/Base.hs b/libraries/base/GHC/Base.hs
index f2a447d..25596e0 100644
--- a/libraries/base/GHC/Base.hs
+++ b/libraries/base/GHC/Base.hs
@@ -1029,7 +1029,10 @@ flip f x y = f y x
($) :: (a -> b) -> a -> b
f $ x = f x
--- | Strict (call-by-value) application, defined in terms of 'seq'.
+-- | Strict (call-by-value) application operator. It takes a function and an
+-- argument, evaluates the argument to weak head normal form (WHNF), then calls
+-- the function with that value.
+
($!) :: (a -> b) -> a -> b
f $! x = let !vx = x in f vx -- see #2273
More information about the ghc-commits
mailing list