Allow enumDeltaIntegerFB to be inlined
authorJoachim Breitner <mail@joachim-breitner.de>
Mon, 28 Sep 2015 11:48:40 +0000 (13:48 +0200)
committerJoachim Breitner <mail@joachim-breitner.de>
Mon, 28 Sep 2015 11:48:40 +0000 (13:48 +0200)
commit78053f449d47a90c977ec3a893524f2cdb5d33f9
treedde0cd0463e93eb49a52e911ec19a60f922d80bc
parentb4d43b4e9f4f4fba068ab1e132113c4cd305dfe3
Allow enumDeltaIntegerFB to be inlined

The function is very small and the compiler should be at liberty to
inline it. But it is recursive, so it did not do it before. By applying
the usual transformation with a local recursive function, GHC can now
inline it, producing the loop that one would expect.
libraries/base/GHC/Enum.hs