Gabriella439 / pipes

Compositional pipelines
BSD 3-Clause "New" or "Revised" License
488 stars 72 forks source link

Prelude: Enable foldr/build fusion of toList #168

Closed bgamari closed 8 years ago

bgamari commented 8 years ago

Previously GHC would be unable to fuse this as it was written in terms of a simple recursion. This merely rewrites toList in terms of build and bumps its INLINEABLE to INLINE to ensure that GHC sees the potential for fusion.

Gabriella439 commented 8 years ago

Looks great! Thanks :)