Skip to content
Snippets Groups Projects
  1. Apr 25, 2023
  2. Oct 26, 2022
  3. Sep 13, 2022
    • sheaf's avatar
      Diagnostic codes: acccept test changes · 362cca13
      sheaf authored and Marge Bot's avatar Marge Bot committed
      The testsuite output now contains diagnostic codes, so many tests need
      to be updated at once.
      We decided it was best to keep the diagnostic codes in the testsuite
      output, so that contributors don't inadvertently make changes to the
      diagnostic codes.
      362cca13
  4. Jan 17, 2022
  5. Jul 12, 2021
    • Alfredo Di Napoli's avatar
      Add proper GHCHints for most PsMessage constructors · a181313e
      Alfredo Di Napoli authored
      This commit adds proper hints to most diagnostic types in the
      `GHC.Parser.Errors.Types` module. By "proper" we mean that previous to
      this commit the hints were bundled together with the diagnostic message,
      whereas now we moved most of them as proper `[GhcHint]` in the
      implementation of `diagnosticHints`.
      
      More specifically, this is the list of constructors which now has
      proper hints:
      
      * PsErrIllegalBangPattern
      * PsWarnOperatorWhitespaceExtConflict
      * PsErrLambdaCase
      * PsErrIllegalPatSynExport
      * PsWarnOperatorWhitespace
      * PsErrMultiWayIf
      * PsErrIllegalQualifiedDo
      * PsErrNumUnderscores
      * PsErrLinearFunction
      * PsErrIllegalTraditionalRecordSyntax
      * PsErrIllegalExplicitNamespace
      * PsErrOverloadedRecordUpdateNotEnabled
      * PsErrIllegalDataTypeContext
      * PsErrSemiColonsInCondExpr
      * PsErrSemiColonsInCondCmd
      * PsWarnStarIsType
      * PsWarnImportPreQualified
      * PsErrImportPostQualified
      * PsErrEmptyDoubleQuotes
      * PsErrIllegalRoleName
      * PsWarnStarBinder
      
      For some reason, this patch increases the peak_megabyte_allocated of
      the T11545 test to 90 (from a baseline of 80) but that particular test
      doesn't emit any parsing diagnostic or hint and the metric increase
      happens only for the `aarch64-linux-deb10`.
      
      Metric Increase:
          T11545
      a181313e
  6. May 21, 2021
    • Jakob Brünker's avatar
      Only suggest names that make sense (#19843) · d9eb8bbf
      Jakob Brünker authored and Marge Bot's avatar Marge Bot committed
      * Don't show suggestions for similar variables when a data constructor
        in a pattern is not in scope.
      
      * Only suggest record fields when a record field for record creation or
        updating is not in scope.
      
      * Suggest similar record fields when a record field is not in scope with
        -XOverloadedRecordDot.
      
      * Show suggestions for data constructors if a type constructor or type
        is not in scope, but only if -XDataKinds is enabled.
      
      Fixes #19843.
      d9eb8bbf
  7. Sep 29, 2020
  8. Jun 26, 2020
Loading