[GHC] #15498: HPC: do notation marks () as non-covered
GHC
ghc-devs at haskell.org
Fri Aug 10 06:49:44 UTC 2018
#15498: HPC: do notation marks () as non-covered
-------------------------------------+-------------------------------------
Reporter: tom-bop | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone: 8.6.1
Component: Code Coverage | Version: 8.2.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Incorrect | Unknown/Multiple
error/warning at compile-time | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by osa1):
Do you mean `()` should've marked as evaluated because it's a CAF?
Otherwise I think the coverage output is correct, `()` is never evaluated.
Replace `()` with `undefined` and you'll see that program output does not
change.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15498#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list