[GHC] #15263: Fuse zipWith3
GHC
ghc-devs at haskell.org
Mon Jun 11 21:10:28 UTC 2018
#15263: Fuse zipWith3
-------------------------------------+-------------------------------------
Reporter: goldfire | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone: 8.6.1
Component: Compiler | Version: 8.4.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by mpickering):
If you are going to do that, you might as well define `zipWith3` in that
way to begin with?
In fact, defining `zipWith3` in this way and adding an `INLINE` pragma
causes it to fuse nicely with map.
My example program and the resulting core here -
https://gist.github.com/mpickering/c190fc25260a3460f4633d0248659192
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15263#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list