[GHC] #3191: hpc reports spurious results with .lhs files even after processing with ghc -E
GHC
ghc-devs at haskell.org
Wed Dec 3 18:07:19 UTC 2014
#3191: hpc reports spurious results with .lhs files even after processing with ghc
-E
-------------------------------------+-------------------------------------
Reporter: dominic | Owner: andy@…
Type: bug | Status: infoneeded
Priority: lowest | Milestone: 7.10.1
Component: Code | Version: 6.10.2
Coverage | Keywords:
Resolution: | Architecture: Unknown/Multiple
Operating System: | Difficulty: Unknown
Unknown/Multiple | Blocked By:
Type of failure: | Related Tickets:
None/Unknown |
Test Case: |
Blocking: |
Differential Revisions: |
-------------------------------------+-------------------------------------
Changes (by thomie):
* status: new => infoneeded
* failure: => None/Unknown
Comment:
I cannot reproduce your problem, or I don't understand the problem
description.
> Even if I run them through the pre-processor (ghc -E) they still don't
work
What doesn't work? Do you see an error message, or maybe nothing happens
at all? What are you trying to do?
Please attach a small test program + instructions that demonstrate your
problem.
Here are some things I tried (same result with 7.8.3 as with 6.12.3):
{{{
$ cat test.lhs
> main = print "ok"
$ ghc -E test.lhs
$ cat test.hspp # The 2 inserted lines you mention
{-# LINE 1 "test.lhs" #-}
#line 1 "test.lhs"
main = print "ok"
$ ghc -fhpc -o test test.hspp
$ ./test
"ok"
$ hpc report test
100% expressions used (0/0)
100% boolean coverage (0/0)
100% guards (0/0)
100% 'if' conditions (0/0)
100% qualifiers (0/0)
100% alternatives used (0/0)
100% local declarations used (0/0)
100% top-level declarations used (0/0)
# Looks ok to me.
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/3191#comment:11>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list