Skip to content

Don't print irrelevant where clauses #1653

@bgohla

Description

@bgohla

The Use camelCase and Avoid capitalisms hints will print where clauses even though they are irrelevant to the hint, e.g.,


src/Hint/NameHelpers.hs:(31,1)-(35,83): Ignore: Avoid capitalisms
Found:
  shortenLGRHS (L locGRHS (GRHS ttg0 guards (L locExpr _)))
    = ...
    where
        dots :: HsExpr GhcPs
        dots
          = HsLit
              noExtField (HsString (SourceText (fsLit "...")) (fsLit "..."))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions