[GHC] #14222: Simple text fusion example results in rather duplicative code

GHC ghc-devs at haskell.org
Thu Sep 14 16:59:33 UTC 2017


#14222: Simple text fusion example results in rather duplicative code
-------------------------------------+-------------------------------------
        Reporter:  bgamari           |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.1
      Resolution:                    |             Keywords:  CSE
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 bgamari):

 I should have been a bit more clear; the duplication that I was pointing
 out wasn't in the case alternatives (although that duplication is perhaps
 also worth thinking about). Rather, I was pointing out that the **entire
 case expression** is duplicated six times at various points in the
 program. I'll attach the simplified Core in a moment.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14222#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list