diff options
author | David Feuer <David.Feuer@gmail.com> | 2014-11-17 19:19:18 -0600 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2014-11-17 19:19:19 -0600 |
commit | 74a6a8a979837d1344fc3236ad6fc4ca76ea49a7 (patch) | |
tree | babfd23ec2cb79043d306e4114224509e8d6dc15 /libraries/base/GHC/Base.hs | |
parent | ce2cc64f0b4c447bf83fd0d0b260f00126a0c4d6 (diff) | |
download | haskell-74a6a8a979837d1344fc3236ad6fc4ca76ea49a7.tar.gz |
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
Diffstat (limited to 'libraries/base/GHC/Base.hs')
-rw-r--r-- | libraries/base/GHC/Base.hs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libraries/base/GHC/Base.hs b/libraries/base/GHC/Base.hs index f2a447dbc4..25596e0d6c 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 |