1. 28 Oct, 2015 2 commits
    • Simon Peyton Jones's avatar
      Pattern synonyms: swap provided/required · 04b0a73a
      Simon Peyton Jones authored
      This patch swaps the order of provided and required constraints in
      a pattern signature, so it now goes
      
            pattern P :: req => prov => t1 -> ... tn -> res_ty
      
      See the long discussion in Trac #10928.
      
      I think I have found all the places, but I could have missed something
      particularly in comments.
      
      There is a Haddock changes; so a submodule update.
      04b0a73a
    • thomie's avatar
      Build system: don't add ALL_HC_OPTS when linking · 9fc2d777
      thomie authored
      Summary:
      The current scheme in rules/distdir-way-opts.mk is something like this:
        GHC_LD_OPTS      = MOST_HC_OPTS + ALL_LD_OPTS
        MOST_DIR_HC_OPTS = MOST_HC_OPTS + -odir,-hidir,-stubdir
        ALL_HC_OPTS      = MOST_DIR_HC_OPTS +
                              -hisuf,-osuf,-hcsuf,-split-objs,-dynamic-too
      
      Notice that both ALL_HC_OPTS and GHC_LD_OPTS include MOST_HC_OPTS, and
      currently both got added when linking. Adding MOST_HC_OPTS twice results
      in overly long and hard to decipher command lines (and build logs). This
      commit fixes that.
      
      Afaik, -odir,-hidir,-stubdir,-hisuf,-osuf,-hcsuf,-spit-objs,-dynamic-too
      are all not needed when linking, so this change should be safe to make.
      GHC_LD_OPTS is for linking, ALL_HC_OPTS is for compiling.
      
      ALL_HC_OPTS was added to the linking commands in
      37a6a52f, to make sure
      -no-user-package-conf would be in the options list. It still is after
      this change.
      
      Reviewers: austin, bgamari
      
      Differential Revision: https://phabricator.haskell.org/D1379
      9fc2d777
  2. 27 Oct, 2015 16 commits
  3. 26 Oct, 2015 7 commits
  4. 25 Oct, 2015 3 commits
    • Alan Zimmerman's avatar
      Provide a utility to check API Annotations · 43751b24
      Alan Zimmerman authored
      It is difficult for GHC developers to know if they have broken the API
      Annotations.
      
      This patch provides a utility that can be used as a test to show up
      errors in the API Annotations.
      
      It is based on the current tests for ghc-api/annotations which can parse
      a file using the just-built GHC API, and check that no annotations are
      disconnected from the ParsedSource in the output.
      
      In addition, it should be able to dump the annotations to a file, so a
      new feature developer can check that all changes to the parser do
      provide annotations.
      
      Trac ticket: #10917
      
      Test Plan: ./validate
      
      Reviewers: hvr, thomie, austin, bgamari
      
      Reviewed By: bgamari
      
      Differential Revision: https://phabricator.haskell.org/D1368
      
      GHC Trac Issues: #10917
      43751b24
    • Erik de Castro Lopo's avatar
      rts/RtsSymbols.c: Fix Windows build · 898f34cd
      Erik de Castro Lopo authored
      Test Plan:
       - Build whole of GHC on Linux.
       - Cross-compile rts/RtsSymbols.c and rts/Linker.c to Windows using the
         i686-w64-mingw32-gcc and x86_64-w64-mingw32-gcc cross compilers.
      
      Reviewers: bgamari, awson, austin
      
      Subscribers: thomie
      
      Differential Revision: https://phabricator.haskell.org/D1365
      898f34cd
    • Erik de Castro Lopo's avatar
      rts/Linker.c: Convert #if/#else to if/else · 3ed4b804
      Erik de Castro Lopo authored
      Test Plan: validate
      
      Reviewers: austin, bgamari
      
      Subscribers: thomie
      
      Differential Revision: https://phabricator.haskell.org/D1366
      3ed4b804
  5. 24 Oct, 2015 6 commits
  6. 23 Oct, 2015 6 commits