Custom Query
Results (10 - 12 of 5835)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #1907 | worksforme | HPC and Template Haskell don't mix | AndyGill | guest |
| description |
When compiling code that uses Template Haskell with HPC, ghc fails part way with ghc: _objs/Common/ArrayTH.hpc_o: unknown symbol `_hs_hpc_module' I guess this is expected for the same reasons that HPC is known not to mix with GHCi. However, I would have expected the same workaround as for profiling to work, namely building the normal objects first and then building with -fhpc -osuf hpc_o, and it doesn't. |
|||
| #2052 | fixed | hpc ignores files containing LINES pragmas that refer to .hsc files | AndyGill | dons |
| description |
ghc -hpc generates no ticks for files containing LINE pragmas that point back to .hsc files. Removing the LINE pragmas, and ticks are generated. An example. This simple .hsc file: main = print "hello, world" Generates this A.hs file: {-# LINE 1 "A.hsc" #-}
main = print "hello, world"
{-# LINE 2 "A.hsc" #-}
Compiling this with -fhpc, we see no ticks produced: { AbsBinds [] [] [Main.main <= [] main_aif]
Main.main :: GHC.IOBase.IO ()
[]
{ print_aie = System.IO.print @ [GHC.Base.Char] $dShow_ail
main_aif = print_aie "hello, world" }
:Main.main = GHC.TopHandler.runMainIO @ () Main.main
$dShow_ail = GHC.Show.$f21 @ GHC.Base.Char $dShow_aiW
$dShow_aiW = GHC.Show.$f18 }
Run this, and get the hpc report: $ ./a.out "hello, world" $ hpc report a.out.tix 100% expressions used (0/0) 100% boolean coverage (0/0) 0/0 declarations. However, an identical file, without LINE pragmas, goes through just fine: $ ghc -fhpc B.hs -ddump-hpc
{ AbsBinds [] [] [Main.main <= [] main_aif]
Main.main :: GHC.IOBase.IO ()
[]
{ print_aie = System.IO.print @ [GHC.Base.Char] $dShow_ail
-- tick id = (2, [])
main_aif = tick<1>(print_aie (tick<0>("got you"))) }
:Main.main = GHC.TopHandler.runMainIO @ () Main.main
$dShow_ail = GHC.Show.$f21 @ GHC.Base.Char $dShow_aiW
$dShow_aiW = GHC.Show.$f18 }
And the result has valid hpc .tix $ hpc report a.out.tix 100% expressions used (2/2) 100% boolean coverage (0/0) |
|||
| #2311 | fixed | hpc markup fails to create directory when marking up coverage of a package | AndyGill | AndyGill |
| description |
When writing marked up html files, hpc markup does not create a directory, if needed, for packages. $ hpc markup --destdir=html Test --fun-entry-count --srcdir=. --srcdir=../../code/vector-space Writing: Test.hs.html Writing: vector-space-0.1.4/Data.Cross.hs.html hpc: html/vector-space-0.1.4/Data.Cross.hs.html: openFile: does not exist (No such file or directory) $ mkdir html/vector-space-0.1.4 $ hpc markup --destdir=html Test --fun-entry-count --srcdir=. --srcdir=../../code/vector-space Writing: Test.hs.html Writing: vector-space-0.1.4/Data.Cross.hs.html Writing: vector-space-0.1.4/Data.Derivative.hs.html Writing: vector-space-0.1.4/Data.NumInstances.hs.html Writing: vector-space-0.1.4/Data.VectorSpace.hs.html ... |
|||
