title: Inlining repeated calls (GHC)
body: <p>Will GHC inline a function that is used more than once? For example:</p>
  
  <pre><code>{-# INLINE innerLoop #-}
  innerLoop x = stuff...
  
  g f = 
      f 0 + f 1 + f 2
  </code></pre>
  
  <p>If we call <code>g innerLoop</code> will the function <code>innerLoop</code> be duplicated three times? Or will it just became <code>g stuff...</code>?</p>
  
  <p>How can we either force <code>innerLoop</code> to be inlined multiple times or prevent it from being inlined multiple times?</p>