[GHC] #13153: Several Traversable instances have an extra fmap

GHC ghc-devs at haskell.org
Thu Jan 19 22:43:23 UTC 2017


#13153: Several Traversable instances have an extra fmap
-------------------------------------+-------------------------------------
        Reporter:  dfeuer            |                Owner:  dfeuer
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.4.1
       Component:  Core Libraries    |              Version:  8.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Runtime           |  Unknown/Multiple
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by dfeuer):

 Replying to [comment:1 RyanGlScott]:
 > Forgive my ignorance here, but how are you proposing to inline the inner
 `traverse`?
 >
 > In my mind, the only way I can see how you'd remove the `(<$>)` is if
 you had a special case for `ZipList []`.

 You're confused about the definition.

 {{{#!hs
 newtype ZipList a = ZipList [a]
 }}}

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


More information about the ghc-tickets mailing list