Inlining question

Simon Peyton-Jones simonpj at microsoft.com
Mon Apr 19 10:52:56 EDT 2004


| > Does inlining work with any function definitions (including those
| > defined locally following a where.. say), or only with top level
| > function definitions?

If you mean

	In GHC, if I use an {-# INLINE #-} pragma on a
	nested function definition, should it be inlined?

then the answer is yes, unless the function is recursive in which case
the pragma is ignored.

Do you have reason to suppose the contrary?  If so, do send a test case

Simon




More information about the Glasgow-haskell-users mailing list