1. 05 Oct, 2013 1 commit
  2. 04 Oct, 2013 26 commits
  3. 03 Oct, 2013 5 commits
    • eir@cis.upenn.edu's avatar
      Fix Trac #8368. · 0c7d2d75
      eir@cis.upenn.edu authored
      Two different fixes were necessary here. First, we need to fail eagerly
      in kcConDecl, to prevent the return-type error in tcConDecl from firing
      twice. (This wasn't caught earlier because of the eager fail in the
      datatype kind-checking code -- which isn't used for data instances!)
      We also must check again in tcDataFamInstDecl, because it's possible for
      a data instance return type to have the right head but the wrong body
      (i.e., doesn't conform to the data instance type patterns). This check
      is only possible *after* desugaring from HsType to Type, so it can't be
      done in tcConRes with the first check.
      This is documented in a comment at check_valid_data_con, a local
      function within tcDataFamInstDecl.
    • Simon Peyton Jones's avatar
      Close over kinds when checking fundep coverage (Trac #8391) · 9d908c52
      Simon Peyton Jones authored
      See Note [Closing over kinds in coverage] in FunDeps
    • Simon Peyton Jones's avatar
      Improve -XAllowAmbiguousTypes (Trac #8392) · 43856a00
      Simon Peyton Jones authored
      * Add a suggestion to add AllowAmbiguousTypes when there is an
        ambiguity error
      * Move some of the logic to tcSimplifyAmbiguityCheck
      * Report inaccessible code regardless of the ambiguity check
    • Simon Peyton Jones's avatar
      Tidy up the commit for Trac #3725 · 7996d8f4
      Simon Peyton Jones authored
      In particular, the mi_ann_fn field in ModIface was only being used
      totally locally in MkIface, so I made it local.
      Other than that I just refactored data types slightly,
        * Adding synonym Annotations.AnnPayload for the cryptic Serialized
        * Adding MkIface.IfaceIdExtras to common up some of the identical code
    • Simon Peyton Jones's avatar
  4. 02 Oct, 2013 4 commits
  5. 01 Oct, 2013 4 commits