diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2014-09-13 11:56:37 +0200 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2014-09-13 12:01:54 +0200 |
commit | b53c95fe621d3a66a82e6dad383e1c0c08f3871e (patch) | |
tree | 25a082f4c389756987cf829e8122ff7a6f87df21 /libraries/base/Prelude.hs | |
parent | b10a7a412738e16d332917b22ee1037383b81eb7 (diff) | |
download | haskell-b53c95fe621d3a66a82e6dad383e1c0c08f3871e.tar.gz |
Move ($!) from Prelude into GHC.Base
I don't see any reason why this needs to be in Prelude, where it makes
life harder to avoid import cycles involving Prelude. Ideally, the
`Prelude` module should only re-export entities from other modules, and
not define anything on its own.
So this moves `($!)` close to the definition of its `($)` cousin.
Diffstat (limited to 'libraries/base/Prelude.hs')
-rw-r--r-- | libraries/base/Prelude.hs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libraries/base/Prelude.hs b/libraries/base/Prelude.hs index 12fe189a8b..12a3d8f59a 100644 --- a/libraries/base/Prelude.hs +++ b/libraries/base/Prelude.hs @@ -151,14 +151,6 @@ import GHC.Real import GHC.Float import GHC.Show -infixr 0 $! - --- ----------------------------------------------------------------------------- --- Miscellaneous functions - --- | Strict (call-by-value) application, defined in terms of 'seq'. -($!) :: (a -> b) -> a -> b -f $! x = let !vx = x in f vx -- see #2273 #ifdef __HADDOCK__ -- | The value of @'seq' a b@ is bottom if @a@ is bottom, and otherwise |