Send Beginners mailing list submissions to
        beginners@haskell.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        beginners-requ...@haskell.org

You can reach the person managing the list at
        beginners-ow...@haskell.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1.  Why many .tix files are generated in Haskell     Program
      Coverage (F L)
   2. Re:  how to parse (PICCA Frederic-Emmanuel)


----------------------------------------------------------------------

Message: 1
Date: Tue, 10 Dec 2019 22:00:39 +0800
From: F L <spiride...@gmail.com>
To: beginners@haskell.org
Subject: [Haskell-beginners] Why many .tix files are generated in
        Haskell Program Coverage
Message-ID:
        <cabjly-mvpsbqkxnuwx8yywyjhaxeukvncmqqgph8jl84u58...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I am using Haskell Program Coverage (HPC) to collect coverage information
for Pandoc (https://github.com/jgm/pandoc). However, after adding the -fhpc
option to GHC and running the program, two .tix files are generated. One is
test-pandoc.tix in the main directory and the other is pandoc.tix under the
"test" directory (test/pandoc.tix). These two files have different contents
and I just cannot see the meaning of them from their names. Moreover, I
tried to execute "hpc show xxx.tix" for them and test/pandoc.tix gives
"hpc: hash in tix file for module Main does not match hash in
./.hpc/Main.mix".

So, I wonder the specific generation rules of HPC tix files (possibly
including the number and location) and how I can get the correct coverage
information.

Thanks very much!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20191210/aa593004/attachment-0001.html>

------------------------------

Message: 2
Date: Tue, 10 Dec 2019 20:16:48 +0000
From: PICCA Frederic-Emmanuel
        <frederic-emmanuel.pi...@synchrotron-soleil.fr>
To: "The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell" <beginners@haskell.org>
Subject: Re: [Haskell-beginners] how to parse
Message-ID:
        
<a2a20ec3b8560d408356cac2fc148e53017d847...@sun-dag3.synchrotron-soleil.fr>
        
Content-Type: text/plain; charset="us-ascii"

> `manyTill` [1] should do
> [1] 
> https://hackage.haskell.org/package/attoparsec-0.13.2.2/docs/Data-Attoparsec-Combinator.html#v:manyTill

It works,

thanks

------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 138, Issue 2
*****************************************

Reply via email to