From 2d5f3cd85e7f65d780e04dca063ec4eedc1f6f99 Mon Sep 17 00:00:00 2001 From: "simonpj@microsoft.com" Date: Fri, 3 Apr 2009 09:17:50 +0000 Subject: [PATCH] Don't inline enumDeltaToInteger until its rules have had a chance to fire --- GHC/Num.lhs | 2 ++ 1 file changed, 2 insertions(+) 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 -- 1.7.10.4