X-Git-Url: http://git.megacz.com/?p=ghc-base.git;a=blobdiff_plain;f=Prelude.hs;h=4c183ae38c9ad44a22a25c4bba5fa9149066cb62;hp=1006bdcf1149063d84e0b4d5f5f24a5fa42a3204;hb=HEAD;hpb=8afc9fecd586d3c4f7ef9c69fb1686a79e5f441d diff --git a/Prelude.hs b/Prelude.hs index 1006bdc..4c183ae 100644 --- a/Prelude.hs +++ b/Prelude.hs @@ -1,4 +1,5 @@ -{-# OPTIONS_GHC -XNoImplicitPrelude #-} +{-# LANGUAGE CPP, NoImplicitPrelude, BangPatterns #-} + ----------------------------------------------------------------------------- -- | -- Module : Prelude @@ -172,12 +173,16 @@ import Hugs.Prelude #ifndef __HUGS__ infixr 0 $! +#endif -- ----------------------------------------------------------------------------- -- Miscellaneous functions -- | Strict (call-by-value) application, defined in terms of 'seq'. ($!) :: (a -> b) -> a -> b +#ifdef __GLASGOW_HASKELL__ +f $! x = let !vx = x in f vx -- see #2273 +#elif !defined(__HUGS__) f $! x = x `seq` f x #endif