[GHC] #9132: takeWhile&C. still not fusible

GHC ghc-devs at haskell.org
Fri May 23 11:22:38 UTC 2014


#9132: takeWhile&C. still not fusible
-------------------------------------+-------------------------------------
        Reporter:  Blaisorblade      |            Owner:
            Type:  bug               |           Status:  new
        Priority:  normal            |        Milestone:
       Component:  libraries/base    |          Version:  7.8.2
      Resolution:                    |         Keywords:  fusion
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  Runtime           |       Difficulty:  Moderate (less
  performance bug                    |  than a day)
       Test Case:                    |       Blocked By:
        Blocking:                    |  Related Tickets:
-------------------------------------+-------------------------------------

Comment (by Blaisorblade):

 > BTW, wat do you mean by
 >>But this is a foldr, while takeWhile should be a foldl!

 Please ignore that, I've just removed that comment from my example. (If
 you're curious, when I wrote that comment I hadn't realized that right
 folds in a lazy language process the list left-to-right rather than right-
 to-left, and more such confusion; then I figured it out but forgot to
 remove the comment).

 > Looks ok, so if you want go ahead with building GHC and running nofib.

 On it!

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


More information about the ghc-tickets mailing list