{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreidqy6jhtzb6fw7hrba5jurdwxxpjkc6ms7kvtdgfo7riv2d7pxxle",
    "uri": "at://did:plc:pi6woz4d47bkuws673w2il2r/app.bsky.feed.post/3mpcm6qwd65l2"
  },
  "path": "/t/can-noinline-fail-to-prevent-inlining/14324#post_4",
  "publishedAt": "2026-06-27T22:13:26.000Z",
  "site": "https://discourse.haskell.org",
  "textContent": "jaror:\n\n> That issue is about worker-wrapper, not inlining.\n\nIt 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.\n\nThe original question was\n\nbrandonchinn178:\n\n> If a top-level variable `foo :: Foo` is annotated with `NOINLINE`, are there any situations where GHC would inline it anyway?\n\nI answered that.",
  "title": "Can NOINLINE fail to prevent inlining?"
}