When ghc-2.08-linux-i386..., (binaries by S.Panne)
compiles the below module with -O, it in-lines both g and f,
as this can be seen from M.hi
But f is rather large to be in-lined, is not it?
I tried to surpress it with {-# notINLINE f #-}.
But ghc ignores it.
Please, what is the way out?
------------------
Sergey Mechveliani
[EMAIL PROTECTED]
---------------------------------------------------------------
module M (g,f) where
g x = if x < 'd' then 'a' else 'b'
{-# notINLINE f #-}
f 'a' = 'b'
f 'b' = 'b'
f 'c' = 'b'
f 'd' = 'b'
f 'e' = 'b'
f 'f' = 'b'
f 'g' = 'b'
f 'h' = 'b'
f x = if x > 'l' then 'c' else h x
where
h 'j' = 'b'
h 'k' = 'b'
h 'l' = 'b'
h 'm' = 'b'
h x = x
---------------------------------------------------------------