Skip to content
Snippets Groups Projects
  1. Oct 07, 2022
  2. Aug 26, 2022
  3. Aug 17, 2022
    • Peter Becich's avatar
      Implement Response File support for HPC · 5e8fd4b9
      Peter Becich authored and Matthew Pickering's avatar Matthew Pickering committed
      This is an improvement to HPC authored by Richard Wallace
      (https://github.com/purefn) and myself. I have received permission from
      him to attempt to upstream it. This improvement was originally
      implemented as a patch to HPC via input-output-hk/haskell.nix:
      https://github.com/input-output-hk/haskell.nix/pull/1464
      
      
      
      Paraphrasing Richard, HPC currently requires all inputs as command line arguments.
      With large projects this can result in an argument list too long error.
      I have only seen this error in Nix, but I assume it can occur is a plain Unix environment.
      
      This MR adds the standard response file syntax support to HPC. For
      example you can now pass a file to the command line which contains the
      arguments.
      
      ```
      hpc @response_file_1 @response_file_2 ...
      
      The contents of a Response File must have this format:
      COMMAND ...
      
      example:
      report my_library.tix --include=ModuleA --include=ModuleB
      ```
      
      Updates hpc submodule
      
      Co-authored-by: default avatarRichard Wallace <rwallace@thewallacepack.net>
      
      Fixes #22050
      5e8fd4b9
  4. May 30, 2022
    • Matthew Pickering's avatar
      hadrian: Fix building from source-dist without alex/happy · 38a0f21c
      Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
      This fixes two bugs which were adding dependencies on alex/happy when
      building from a source dist.
      
      * When we try to pass `--with-alex` and `--with-happy` to cabal when
        configuring but the builders are not set. This is fixed by making them
        optional.
      * When we configure, cabal requires alex/happy because of the
        build-tool-depends fields. These are now made optional with a cabal
        flag (build-tool-depends) for compiler/hpc-bin/genprimopcode.
      
      Fixes #21627
      38a0f21c
  5. Feb 21, 2022
    • Zubin's avatar
      Reinstallable GHC · d1213125
      Zubin authored and Matthew Pickering's avatar Matthew Pickering committed
      This patch allows ghc and its dependencies to be built using a normal
      invocation of cabal-install. Each componenent which relied on generated
      files or additional configuration now has a Setup.hs file.
      
      There are also various fixes to the cabal files to satisfy
      cabal-install.
      
      There is a new hadrian command which will build a stage2 compiler and
      then a stage3 compiler by using cabal.
      
      ```
      ./hadrian/build build-cabal
      ```
      
      There is also a new CI job which tests running this command.
      
      For the 9.4 release we will upload all the dependent executables to
      hackage and then end users will be free to build GHC and GHC executables
      via cabal.
      
      There are still some unresolved questions about how to ensure soundness
      when loading plugins into a reinstalled GHC (#20742) which will be
      tighted up in due course.
      
      Fixes #19896
  6. Jan 29, 2021
  7. Dec 02, 2019
  8. Nov 20, 2019
    • Alexey Kuleshevich's avatar
      hpc: Fix encoding issues. Add test for and fix #17073 · e2adb0e1
      Alexey Kuleshevich authored and Marge Bot's avatar Marge Bot committed
      
      * 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: default avatarBen Gamari <ben@smart-cactus.org>
      e2adb0e1
  9. Mar 25, 2019
  10. Jun 20, 2018
  11. Aug 31, 2017
  12. Jul 06, 2017
  13. May 04, 2017
  14. Dec 15, 2016
  15. Oct 30, 2015
  16. Sep 12, 2015
  17. Jul 04, 2015
  18. Apr 10, 2015
  19. Mar 17, 2015
    • Thomas Miedema's avatar
      hpc: use System.FilePath.(</>) instead of (++) · e523c1a6
      Thomas Miedema authored
      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
      e523c1a6
  20. Feb 17, 2015
    • Yuras's avatar
      Add configurable verbosity level to hpc · 52dbc20e
      Yuras authored
      Summary:
      All commands now have `--verbosity` flag, so one can configure
      cabal package with `--hpc-options="--verbosity=0"`.
      
      Right now it is used only in `hpc markup` to supress unnecessary
      output.
      
      Reviewers: austin
      
      Reviewed By: austin
      
      Subscribers: thomie
      
      Differential Revision: https://phabricator.haskell.org/D660
      
      GHC Trac Issues: #10091
      52dbc20e
  21. Nov 01, 2014
  22. Oct 02, 2014
  23. Oct 01, 2014
    • David Feuer's avatar
      Use dropWhileEndLE p instead of reverse . dropWhile p . reverse · ea8431a1
      David Feuer authored and Joachim Breitner's avatar Joachim Breitner committed
      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
      ea8431a1
  24. Sep 21, 2014
  25. May 15, 2014
  26. May 14, 2014
  27. Feb 17, 2014
  28. Oct 11, 2013
  29. Oct 01, 2013
  30. Mar 03, 2013
    • ian@well-typed.com's avatar
      Automatically add the $(exeext) to program names · fdfb0c29
      ian@well-typed.com authored
      We now define _PROGNAME, and _PROG is automatically defined with
      $(exeext). This will shortly automatically use the right exeext
      depending on what stage it is being compiled with (exeext may be
      different for different stages when cross-compiling).
      fdfb0c29
  31. Nov 23, 2012
Loading