1. 13 Sep, 2018 1 commit
  2. 12 Sep, 2018 3 commits
  3. 10 Sep, 2018 1 commit
  4. 07 Sep, 2018 3 commits
  5. 06 Sep, 2018 1 commit
  6. 05 Sep, 2018 1 commit
    • Alp Mestanogullari's avatar
      Work around the "can't use Natural in base" problem on a per-flavour basis (#676) · 1bbc4b3b
      Alp Mestanogullari authored and Andrey Mokhov's avatar Andrey Mokhov committed
      * Work around the "can't use natural in base" problem on a per-flavour basis
      
      The only flavours that need the workaround are the ones that build
      GHC/{Natural, Num}.hs with -O0, namely 'quick', 'quickest' and 'prof'.
      This patches defines the necessary arguments in one place and uses them
      in all the aforementionned flavour definitions.
      
      This will allow us to have both quick/quickest/prof builds that come through
      as well as an efficient compiler when we want it (with e.g perf), which wasn't
      the case before my series of patches for this problem.
      
      * address @snowleopard's feedback
      1bbc4b3b
  7. 04 Sep, 2018 2 commits
  8. 03 Sep, 2018 1 commit
  9. 02 Sep, 2018 1 commit
  10. 01 Sep, 2018 1 commit
    • Andrey Mokhov's avatar
      Fix build scripts (#668) · 12e6635a
      Andrey Mokhov authored
      * Delete scripts relying on global package database
      
      * Simplify Cabal build script
      
      * Simplify the default build script
      
      * Fix path
      
      * Invoke the build script from GHC root
      
      * Switch to newer Cabal
      
      * Don't disable Cabal output
      
      * Add build.cabal.bat
      12e6635a
  11. 29 Aug, 2018 3 commits
    • Andrey Mokhov's avatar
      Fix documentation rules (#665) · 90d07d7b
      Andrey Mokhov authored
      * Make sure we need haddockHtmlLib before creating anything in the directory
      
      * Fix Haddock builder provenance
      
      * Do not clean up the HTML docs directory
      
      * Fix the target directory
      
      * Add more missing dependencies on haddockHtmlLib
      
      * Replace docPackage with docContext
      
      * Minor revision
      90d07d7b
    • Andrey Mokhov's avatar
      Tweak the build root section · e5f13b3a
      Andrey Mokhov authored
      e5f13b3a
    • Andrey Mokhov's avatar
      Simplify Package data type (#663) · 798a716b
      Andrey Mokhov authored
      I noticed that all packages we build have Cabal files now, which means we no longer need to distinguish between C and Haskell packages. This leads to a lot of simplifications and removal of unsafe functions.
      798a716b
  12. 27 Aug, 2018 5 commits
  13. 26 Aug, 2018 2 commits
  14. 24 Aug, 2018 1 commit
    • Andrey Mokhov's avatar
      Fix package dependencies (#657) · a804d57a
      Andrey Mokhov authored
      This fixes #654.
      
      There are only two important changes.
      
      1) The first one fixes missing dependencies:
      
      ```diff
      -pkgDependencies = fmap (fmap PD.dependencies) . readPackageDataFile
      +pkgDependencies = fmap (fmap (map pkgName . packageDependencies)) . readCabalFile
      ```
      
      Here `PD.dependencies` returned versioned package names, e.g. `ghc-8.7`, which then failed to match with non-versioned package names such as `ghc` in `contextDependencies`. Switching from `PD.dependencies` to `packageDependencies` fixes this.
      
      2) I clearly remember that we didn't have this bug before, so I added some tests for our package dependency infrastructure to prevent such regressions in future:
      
      ```haskell
      testDependencies :: Action ()
      testDependencies = do
          putBuild "==== pkgDependencies"
          depLists <- mapM (pkgDependencies . vanillaContext Stage1) ghcPackages
          test $ and [ deps == sort deps | Just deps <- depLists ]
          putBuild "==== Dependencies of the 'ghc-bin' binary"
          ghcDeps <- pkgDependencies (vanillaContext Stage1 ghc)
          test $ isJust ghcDeps
          test $ pkgName compiler `elem` fromJust ghcDeps
          stage0Deps <- contextDependencies (vanillaContext Stage0 ghc)
          stage1Deps <- contextDependencies (vanillaContext Stage1 ghc)
          stage2Deps <- contextDependencies (vanillaContext Stage2 ghc)
          test $ vanillaContext Stage0 compiler `notElem` stage1Deps
          test $ vanillaContext Stage1 compiler `elem`    stage1Deps
          test $ vanillaContext Stage2 compiler `notElem` stage1Deps
          test $ stage1Deps /= stage0Deps
          test $ stage1Deps == stage2Deps
      ```
      
      Everything else are cosmetic changes, fixing minor issues in comments, and adding TODOs. To figure out the failure in #654 I had to read some code I didn't write and my hands were automatically fixing some style inconsistencies with the rest of the Hadrian code base. (I'd like to emphasise that I make no judgement about which style is better, it's merely an attempt to make the code base look more homogeneous, which I think is useful.)
      a804d57a
  15. 22 Aug, 2018 1 commit
  16. 05 Aug, 2018 1 commit
  17. 31 Jul, 2018 1 commit
  18. 20 Jul, 2018 1 commit
  19. 19 Jul, 2018 1 commit
  20. 27 Jun, 2018 2 commits
  21. 22 Jun, 2018 1 commit
  22. 20 Jun, 2018 2 commits
    • Chitrak Raj Gupta's avatar
      Add includes to bindist (#632) · 36c9781b
      Chitrak Raj Gupta authored and Andrey Mokhov's avatar Andrey Mokhov committed
      * adding include directories
      
      * Adding includes
      
      * Shipping ghci
      36c9781b
    • Chitrak Raj Gupta's avatar
      Remove more validation errors (#628) · d4b9c1fb
      Chitrak Raj Gupta authored and Andrey Mokhov's avatar Andrey Mokhov committed
      * Improved GhcCabal library arguments
      
      * setting enviornment for extra programs
      
      * Copied necessary programs
      
      * Added support to generate ghcconfig
        We will need it for properly configuring python command
      
      Some revisions
      
      * Using ghcconfig file for test parameters
      
      * minor changes
      
      * minor revision
      
      * Update Ghc.hs
      d4b9c1fb
  23. 18 Jun, 2018 3 commits
  24. 15 Jun, 2018 1 commit