[GHC] #15932: DeriveFunctor and GeneralizedNewtypeDeriving instances never reporting as covered

GHC ghc-devs at haskell.org
Fri Nov 23 21:08:17 UTC 2018


#15932: DeriveFunctor and GeneralizedNewtypeDeriving instances never reporting as
covered
-------------------------------------+-------------------------------------
        Reporter:  davean            |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  low               |            Milestone:  8.6.3
       Component:  Code Coverage     |              Version:  8.6.2
      Resolution:                    |             Keywords:  newcomer
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Other             |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by bgamari):

 * keywords:   => newcomer


Comment:

 I suspect this wouldn't be too hard to fix. The relevant implementation
 bits can be found in `deSugar/Coverage.hs`; I would start by looking at
 the `-ddump-ds` output to verify that there are no coverage ticks in the
 derived instances. If this really is the issue then I suspect a solution
 should be straightforward.

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


More information about the ghc-tickets mailing list