1. 29 Nov, 2016 1 commit
  2. 08 Oct, 2016 2 commits
  3. 02 Oct, 2016 1 commit
  4. 08 Aug, 2016 2 commits
  5. 21 Jun, 2016 1 commit
    • niteria's avatar
      Make checkFamInstConsistency less expensive · 12306294
      niteria authored
      Doing canonicalization on every comparison turned
      out to be very expensive.
      Caching the canonicalization through the smart `modulePair` constructor
      gives `8%` reduction in allocations on `haddock.compiler` and
      `8.5%` reduction in allocations on `haddock.Cabal`.
      Possibly other things as well, but it's really visible in Haddock.
      Test Plan: ./validate
      Reviewers: jstolarek, simonpj, austin, simonmar, bgamari
      Reviewed By: simonpj, simonmar
      Subscribers: thomie
      Differential Revision: https://phabricator.haskell.org/D2350
      GHC Trac Issues: #12191
  6. 18 Jun, 2016 2 commits
    • Ryan Scott's avatar
      Refactor derived Generic instances to reduce allocations · 9649fc0a
      Ryan Scott authored and Ben Gamari's avatar Ben Gamari committed
      Previously, derived implementations of `to`/`from` in `Generic`
      instances were wastefully putting extra `M1`s in every case, which led
      to an O(n) increase in the number of coercions, resulting in a slowdown
      during the typechecker phase.
      This factors out the common `M1` in every case of a `to`/`from`
      definition so that the typechecker has far fewer coercions to deal with.
      For a datatype with 300 constructors, this change has been observed to
      save almost 3 seconds of compilation time.
      This is one step towards coming up with a solution for #5642.
      Test Plan: ./validate
      Reviewers: hvr, austin, simonpj, bgamari
      Reviewed By: bgamari
      Subscribers: basvandijk, carter, thomie, osa1
      Differential Revision: https://phabricator.haskell.org/D2304
      GHC Trac Issues: #5642
    • Thomas Miedema's avatar
      Testsuite: run tests in <testdir>.run instead of /tmp · f72f23f9
      Thomas Miedema authored
      As discussed in Phab:D1187, this approach makes it a bit easier to
      inspect the test directory while working on a new test.
      The only tests that needed changes are the ones that refer to files in
      ancestor directories. Those files are now copied directly into the test
      validate still runs the tests in a temporary directory in /tmp, see
      `Note [Running tests in /tmp]` in testsuite/driver/runtests.py.
      Update submodule hpc.
      Reviewed by: simonmar
      Differential Revision: https://phabricator.haskell.org/D2333
      GHC Trac Issues: #11980
  7. 12 May, 2016 1 commit
    • Ryan Scott's avatar
      Make Generic1 poly-kinded · b8e25651
      Ryan Scott authored and Ben Gamari's avatar Ben Gamari committed
      This generalizes the `Generic1` typeclass to be of kind `k -> *`, and
      this also makes the relevant datatypes and typeclasses in `GHC.Generics`
      poly-kinded. If `PolyKinds` is enabled, `DeriveGeneric` derives
      `Generic1` instances such that they use the most general kind possible.
      Otherwise, deriving `Generic1` defaults to make an instance where the
      argument is of kind `* -> *` (the current behavior).
      Fixes #10604. Depends on D2117.
      Test Plan: ./validate
      Reviewers: kosmikus, dreixel, goldfire, austin, hvr, simonpj, bgamari
      Reviewed By: simonpj, bgamari
      Subscribers: thomie, ekmett
      Differential Revision: https://phabricator.haskell.org/D2168
      GHC Trac Issues: #10604
  8. 07 Apr, 2016 1 commit
  9. 06 Apr, 2016 2 commits
  10. 30 Mar, 2016 1 commit
  11. 29 Mar, 2016 1 commit
  12. 25 Feb, 2016 1 commit
  13. 22 Dec, 2015 1 commit
  14. 17 Dec, 2015 2 commits
  15. 15 Dec, 2015 1 commit
    • Simon Peyton Jones's avatar
      Allow recursive (undecidable) superclasses · 6eabb6dd
      Simon Peyton Jones authored
      This patch fulfils the request in Trac #11067, #10318, and #10592,
      by lifting the conservative restrictions on superclass constraints.
      These restrictions are there (and have been since Haskell was born) to
      ensure that the transitive superclasses of a class constraint is a finite
      set.  However (a) this restriction is conservative, and can be annoying
      when there really is no recursion, and (b) sometimes genuinely recursive
      superclasses are useful (see the tickets).
      Dimitrios and I worked out that there is actually a relatively simple way
      to do the job. It’s described in some detail in
         Note [The superclass story] in TcCanonical
         Note [Expanding superclasses] in TcType
      In brief, the idea is to expand superclasses only finitely, but to
      iterate (using a loop that already existed) if there are more
      superclasses to explore.
      Other small things
      - I improved grouping of error messages a bit in TcErrors
      - I re-centred the haddock.compiler test, which was at 9.8%
        above the norm, and which this patch pushed slightly over
  16. 11 Dec, 2015 1 commit
    • eir@cis.upenn.edu's avatar
      Add kind equalities to GHC. · 67465497
      eir@cis.upenn.edu authored
      This implements the ideas originally put forward in
      "System FC with Explicit Kind Equality" (ICFP'13).
      There are several noteworthy changes with this patch:
       * We now have casts in types. These change the kind
         of a type. See new constructor `CastTy`.
       * All types and all constructors can be promoted.
         This includes GADT constructors. GADT pattern matches
         take place in type family equations. In Core,
         types can now be applied to coercions via the
         `CoercionTy` constructor.
       * Coercions can now be heterogeneous, relating types
         of different kinds. A coercion proving `t1 :: k1 ~ t2 :: k2`
         proves both that `t1` and `t2` are the same and also that
         `k1` and `k2` are the same.
       * The `Coercion` type has been significantly enhanced.
         The documentation in `docs/core-spec/core-spec.pdf` reflects
         the new reality.
       * The type of `*` is now `*`. No more `BOX`.
       * Users can write explicit kind variables in their code,
         anywhere they can write type variables. For backward compatibility,
         automatic inference of kind-variable binding is still permitted.
       * The new extension `TypeInType` turns on the new user-facing
       * Type families and synonyms are now promoted to kinds. This causes
         trouble with parsing `*`, leading to the somewhat awkward new
         `HsAppsTy` constructor for `HsType`. This is dispatched with in
         the renamer, where the kind `*` can be told apart from a
         type-level multiplication operator. Without `-XTypeInType` the
         old behavior persists. With `-XTypeInType`, you need to import
         `Data.Kind` to get `*`, also known as `Type`.
       * The kind-checking algorithms in TcHsType have been significantly
         rewritten to allow for enhanced kinds.
       * The new features are still quite experimental and may be in flux.
       * TODO: Several open tickets: #11195, #11196, #11197, #11198, #11203.
       * TODO: Update user manual.
      Tickets addressed: #9017, #9173, #7961, #10524, #8566, #11142.
      Updates Haddock submodule.
  17. 03 Dec, 2015 1 commit
  18. 03 Oct, 2015 1 commit
  19. 22 Jul, 2015 1 commit
  20. 29 Jun, 2015 1 commit
    • Joachim Breitner's avatar
      Update performance numbers due to #10482 · 9b5df2a4
      Joachim Breitner authored
      The fix in 0b7e538a has regressed these benchmarks. I have recentered
      them rather than marking them as broken(10482), because nobody
      systematically watches the broken test cases, and we want to catch
      future regressions (or improvements!). #10482 is currently still open,
      presumably because this needs investigating.
  21. 04 Jun, 2015 1 commit
    • Thomas Miedema's avatar
      Re-center perf numbers for haddock.compiler · d8f66f1b
      Thomas Miedema authored
      Phabricator/Harbormaster measured the following allocation numbers for
      Expected:     33562468736
      June 2nd [1]: 36740649320
      Upper bound:  36918715610
      June 3rd [2]: 36956620504
      So although this test didn't start failing until June 2nd/3rd, the
      biggest increase in allocation must have occured sometime before that.
      [1] 2f0011ac
      [2] 942cfa4e
      Test Plan: validate
      Reviewers: austin
      Subscribers: bgamari, thomie
      Differential Revision: https://phabricator.haskell.org/D948
  22. 27 May, 2015 1 commit
    • Thomas Miedema's avatar
      Build system: don't install haddock .t files (#10410) · 388448bc
      Thomas Miedema authored
      When generating a haddock .t file for a library, don't save it in the
      `dist-install/doc` directory for that library, as then it gets copied to
      the installation directory during `make install` by `ghc-cabal copy`.
      Instead, save it a few directories up; putting it next to
      `haddock-prologue.txt` seemed appropriate.
      Test Plan: run `make` in `tests/perf/haddock`.
      Differential Revision: https://phabricator.haskell.org/D903
  23. 23 May, 2015 1 commit
  24. 22 Jan, 2015 3 commits
  25. 20 Jan, 2015 1 commit
  26. 08 Jan, 2015 1 commit
  27. 16 Dec, 2014 1 commit
  28. 14 Dec, 2014 4 commits
  29. 11 Dec, 2014 1 commit
  30. 03 Dec, 2014 1 commit