inlining higher-order-functions?

Bulat Ziganshin bulat.ziganshin at gmail.com
Fri Dec 22 06:22:45 EST 2006


Hello Norman,

Friday, December 22, 2006, 8:23:57 AM, you wrote:

> compose :: (b -> c) -> (a -> b) -> (a -> c)
> compose f g = \x -> f (g x)

ghc 6.6 added 'inline' function, see user docs. although only SPJ knows
whether it can be used here:

compose f g = inline (\x -> f (g x))

-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Glasgow-haskell-users mailing list