summaryrefslogtreecommitdiff
path: root/utils/hpc/HpcUtils.hs
Commit message (Collapse)AuthorAgeFilesLines
* hpc: Fix encoding issues. Add test for and fix #17073Alexey Kuleshevich2019-11-191-4/+3
| | | | | | | | | | | | | * Make sure files are being read/written in UTF-8. Set encoding while writing HTML output. Also set encoding while writing and reading .tix files although we don't yet have a ticket complaining that this poses problems. * Set encoding in html header to utf8 * Upgrade to new version of 'hpc' library and reuse `readFileUtf8` and `writeFileUtf8` functions * Update git submodule for `hpc` * Bump up `hpc` executable version Co-authored-by: Ben Gamari <ben@smart-cactus.org>
* hpc: use System.FilePath.(</>) instead of (++)Thomas Miedema2015-03-171-1/+2
| | | | | | | | | | | | | | | | Summary: BAD: "." ++ "/" ++ "/absolute/path" == ".//absolute/path" GOOD: "." </> "/absolute/path" == "/absolute path" Also replace `++ ".ext"` with `<.> "ext"`. Although it doesn't fix any bugs in this instance, it might in some other. As a general rule it's better not to use (++) on FilePaths. Reviewed By: austin, hvr Differential Revision: https://phabricator.haskell.org/D703 GHC Trac Issues: #10138
* Fix comment about dropWhileEndLEJoachim Breitner2014-11-011-1/+1
|
* Use dropWhileEndLE p instead of reverse . dropWhile p . reverseDavid Feuer2014-10-021-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Summary: Using `dropWhileEndLE` tends to be faster and easier to read than the `reverse . dropWhile p . reverse` idiom. This also cleans up some other, nearby, messes. Fix #9616 (incorrect number formatting potentially leading to incorrect numbers in output). Test Plan: Run validate Reviewers: thomie, rwbarton, nomeata, austin Reviewed By: nomeata, austin Subscribers: simonmar, ezyang, carter, thomie Projects: #ghc Differential Revision: https://phabricator.haskell.org/D259 GHC Trac Issues: #9623, #9616 Conflicts: compiler/basicTypes/OccName.lhs
* Revert "Use dropWhileEndLE p instead of reverse . dropWhile p . reverse"Austin Seipp2014-10-021-4/+0
| | | | This reverts commit 2a8856884de7d476e26b4ffa829ccb3a14d6f63e.
* Use dropWhileEndLE p instead of reverse . dropWhile p . reverseDavid Feuer2014-10-011-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Summary: Using `dropWhileEndLE` tends to be faster and easier to read than the `reverse . dropWhile p . reverse` idiom. This also cleans up some other, nearby, messes. Fix #9616 (incorrect number formatting potentially leading to incorrect numbers in output). Test Plan: Run validate Reviewers: thomie, rwbarton, nomeata, austin Reviewed By: nomeata, austin Subscribers: simonmar, ezyang, carter, thomie Projects: #ghc Differential Revision: https://phabricator.haskell.org/D259 GHC Trac Issues: #9623, #9616 Conflicts: compiler/basicTypes/OccName.lhs
* Replace uses of the old catch function with the new oneIan Lynagh2010-12-181-6/+6
|
* Remove redundant HpcMap and HpcSet wrappers around Data.{Map,Set}Ian Lynagh2010-12-161-1/+1
|
* Make some utils -Wall cleanIan Lynagh2008-08-211-4/+3
|
* updating hpc toolkitandy@galois.com2007-09-081-0/+12
| | | | | | The hpc overlay has been ported from hpc-0.4 The new API for readMix is now used.
* Adding draft and show to hpcandy@galois.com2007-07-121-0/+20
we now have hpc draft <TIX_FILE> This drafts up a candidate overlay for 100% coverage. and hpc show <TIX_FILE> This show verbose details about a tix file; mainly for debugging.