[Haskell-cafe] Inlinable vs inline

Charles Durham cpdurham at gmail.com
Tue Nov 4 00:20:10 UTC 2014


Hi,

I wanted to get some clarifications on how inlinable and inline behave.

One particular case is where you have a module exporting some functions
with helper functions that are not exported. You go ahead and add inlinable
to the exported functions so that the call site can specialize on them. Is
there any penalty to adding inline vs inlinable to the helper functions?

For example, are there cases where a helper function will not inline and
thus can not be specailized at the call site and it would be better to
declare the helper function inlinable?

I would be interested to hear any nuances related to the differences and
practical consequences of these pragmas.

Thanks!

Charlie Durham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20141103/00bc7128/attachment.html>


More information about the Haskell-Cafe mailing list