Can NOINLINE fail to prevent inlining?
Haskell Community [Unofficial]
June 27, 2026
jaror:
That issue is about worker-wrapper, not inlining.
It is about inlining because the wrapper gets inlined despite NOINLINE on the original definition. I’ve observed it in production, which is how I know about the issue.
The original question was
brandonchinn178:
If a top-level variable
foo :: Foois annotated withNOINLINE, are there any situations where GHC would inline it anyway?
I answered that.
Discussion in the ATmosphere