Hacker News new | ask | show | jobs
by DanWaterworth 4308 days ago
I don't believe GHC actually does implement stream fusion. I think stream fusion happens with rewrite rules.
1 comments

pardon my ignorance, but what would be the difference between the two? Don't rewrite rules happen in GCH anyway?
Sorry, I should have been clearer. The rewriting happens in GHC, but it's the application programmer who creates the rules. So, stream fusion isn't implemented by the compiler AFAIK.
ah that makes sense, thanks.