From: simonpj@microsoft.com Date: Fri, 3 Apr 2009 09:17:50 +0000 (+0000) Subject: Don't inline enumDeltaToInteger until its rules have had a chance to fire X-Git-Tag: 2009-06-25~40 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=2d5f3cd85e7f65d780e04dca063ec4eedc1f6f99;p=ghc-base.git Don't inline enumDeltaToInteger until its rules have had a chance to fire --- diff --git a/GHC/Num.lhs b/GHC/Num.lhs index 307909d..19514b6 100644 --- a/GHC/Num.lhs +++ b/GHC/Num.lhs @@ -293,6 +293,8 @@ enumDeltaInteger x d = x `seq` (x : enumDeltaInteger (x+d) d) -- head (drop 1000000 [1 .. ] -- works +{-# NOINLINE [0] enumDeltaToIntegerFB #-} +-- Don't inline this until RULE "enumDeltaToInteger" has had a chance to fire enumDeltaToIntegerFB :: (Integer -> a -> a) -> a -> Integer -> Integer -> Integer -> a enumDeltaToIntegerFB c n x delta lim