Skip to content
Snippets Groups Projects
  1. Sep 21, 2015
  2. Sep 20, 2015
  3. Sep 19, 2015
    • Richard Eisenberg's avatar
      Polish some error messages. · 8ee2b953
      Richard Eisenberg authored
      8ee2b953
    • Richard Eisenberg's avatar
      Fix #10815 by kind-checking type patterns against known kinds. · 2d4db40a
      Richard Eisenberg authored
      tcFamTyPats now must take information about the instantiation of any
      class variables, when checking the instance of an associated type.
      
      Getting this to work out required some unexpected refactoring in
      TcDeriv. TcDeriv needs to look at class instances because of the
      possibility of associated datatypes with `deriving` specs. TcDeriv
      worked over the user-specified instances. But any data family instances
      were already processed, and TcDeriv had no way of finding the rep
      tycons. Indeed, TcDeriv *re-type-checked* any data family instances
      in an attempt to rediscover what GHC already knew. So, this commit
      introduces better tracking of compiled data families between TcInstDcls
      and TcDeriv to streamline all of this.
      2d4db40a
  4. Sep 18, 2015
  5. Sep 17, 2015
    • Thomas Miedema's avatar
      Docs: make sure all libs are included in index.html (#10879) · 48746fff
      Thomas Miedema authored
      During the build, when HADDOCK_DOCS=YES, the command 'cd libraries && sh
      gen_contents_index --intree' is run, which calls haddock to generate the
      haddock index at 'libraries/dist-haddock/index.html'.
      
      What it did before was check the ./packages file for all libraries. The
      problem is that 'base' and 'ghc-prim' were folded into the main repo
      some time ago, hence don't have an entry in the ./packages file anymore.
      As a result, 'base' and 'ghc-prim' were missing from the index.html
      file.
      
      It now simply runs haddock on all the all the `.haddock` files in the
      libraries directory.
      
      The only risk is that this could include the extra libraries in the
      index.html, if you ever built them in the past (with
      BUILD_EXTRA_PKGS=YES), even though now you want to exclude them (with
      BUILD_EXTRA_PKGS=NO). gen_contents_index doesn't have access to build
      system variables though (PACKAGES_STAGE1+PACKAGES_STAGE2), so fixing
      this would be a little bit fiddly.
      
      Test Plan:
      'make libraries/dist-haddock/index.html && grep -q base
      libraries/dist-haddock/index.html && echo ok'
      
      Reviewed by: austin
      
      Differential Revision: https://phabricator.haskell.org/D1247
      48746fff
    • Ryan Scott's avatar
      Add namePackage function to template-haskell · 77662e13
      Ryan Scott authored and Thomas Miedema's avatar Thomas Miedema committed
      Currently there exists a nameBase function (for retrieving a Name's OccName)
      and a nameModule function (for retrieving a Name's ModName), but there is no
      counterpart for PkgNames.
      
      This would be useful for implementing Template Haskell features which need
      to have easy access to a Name's package (e.g., automatically derived Lift
      instances).
      
      Reviewed By: goldfire, austin, thomie
      
      Differential Revision: https://phabricator.haskell.org/D1237
      77662e13
    • Simon Marlow's avatar
      ApplicativeDo transformation · 8ecf6d8f
      Simon Marlow authored
      Summary:
      This is an implementation of the ApplicativeDo proposal.  See the Note
      [ApplicativeDo] in RnExpr for details on the current implementation,
      and the wiki page https://ghc.haskell.org/trac/ghc/wiki/ApplicativeDo
      for design notes.
      
      Test Plan: validate
      
      Reviewers: simonpj, goldfire, austin
      
      Subscribers: thomie
      
      Differential Revision: https://phabricator.haskell.org/D729
      8ecf6d8f
    • Moritz Kiefer's avatar
      Show minimal complete definitions in ghci (#10847) · 43eb1dc5
      Moritz Kiefer authored and Thomas Miedema's avatar Thomas Miedema committed
      Show the minimal complete definition on :info in ghci. They
      are shown like MINIMAL pragmas in code. If the minimal complete
      definition is empty or only a specific method from a class is
      requested, nothing is shown.
      
      Reviewed By: simonpj, austin, thomie
      
      Differential Revision: https://phabricator.haskell.org/D1241
      43eb1dc5
    • Thomas Miedema's avatar
      Testsuite: add test for #10781 · 8d89d80d
      Thomas Miedema authored
      8d89d80d
  6. Sep 16, 2015
  7. Sep 15, 2015
    • Thomas Miedema's avatar
      Fix `hp2ps -i-` · 325efac2
      Thomas Miedema authored
      From the help text:
        -i[+|-] sort by identifier string (-i+ gives greatest on top)
      
      Found by David Binderman.
      325efac2
    • Sebastian Reuße's avatar
      Pretty: fix unicode arrow operators. · 14c4090e
      Sebastian Reuße authored and Thomas Miedema's avatar Thomas Miedema committed
      As per issue #10509, the documentation gave the wrong glyphs for Unicode
      alternatives to the -< and >- arrow operators (the codepoints were
      correct, but the glyphs were not). The incorrect glyphs have also
      made it into the error output. This replaces those characters with the
      correct versions.
      
      GHC Trac Issues: #10883
      14c4090e
  8. Sep 14, 2015
  9. Sep 12, 2015
  10. Sep 11, 2015
Loading