RE: The role of INLINE and INLINABLE on recursive functions

2011-06-09 Thread Simon Peyton-Jones
INLINE: - no effect for a recursive function - for a non-recursive function, always inline a call that (a) is applied to as many args as the LHS of the defn (b) has some interesting context. Ie (\y x- f x y) doesn't inline f INLINEABLE a) For type-class

Re: The role of INLINE and INLINABLE on recursive functions

2011-06-09 Thread Johan Tibell
On Thu, Jun 9, 2011 at 1:43 PM, Simon Peyton-Jones simo...@microsoft.com wrote: Does that help? Definitely. Thanks! Johan ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org

Re: The role of INLINE and INLINABLE on recursive functions

2011-06-09 Thread Simon Marlow
On 09/06/2011 12:43, Simon Peyton-Jones wrote: INLINE: - no effect for a recursive function - for a non-recursive function, always inline a call that (a) is applied to as many args as the LHS of the defn (b) has some interesting context. Ie (\y x- f x y) doesn't