title: Could dynamic linking hurt inlining thus performance in GHC?
body: <p>It's no secret that inlining is what's enabling a lot of the sophisticated optimizations GHC can carry out. If I link a library dynamically (and get an actual dll/so file out of it), could GHC still inline where it would have, as if the link was static, and depend on the dll for the rest? or do I actually get less optimizations?</p>