[Haskell-cafe] Rewrite rules

Henning Thielemann lemming at henning-thielemann.de
Thu Oct 16 11:44:59 EDT 2008


On Thu, 16 Oct 2008, George Pollard wrote:

> However, in the case he has written about this won't fire, since the LHS
> cannot be substituted as `cycle list` is used more than once:
>
>> let rlist = cycle list
>> print ( rlist !! (10^9), rlist !! 0 )
>
> I can get it to fire again if I write it like this:

Perhaps {-# INLINE rlist #-}


More information about the Haskell-Cafe mailing list