Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove an unused parameter #762

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/HIndent/Pretty.hs
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@
string " @"
pretty r
#endif
prettyHsExpr (OpApp _ l o r) = pretty (InfixApp l o r False)
prettyHsExpr (OpApp _ l o r) = pretty (InfixApp l o r)
prettyHsExpr (NegApp _ x _) = string "-" >> pretty x
#if MIN_VERSION_ghc_lib_parser(9,4,1)
prettyHsExpr (HsPar _ _ expr _) = parens $ pretty expr
Expand Down Expand Up @@ -1208,7 +1208,7 @@
ver = newline >> indentedBlock (pretty body)
pretty' ApplicativeStmt {} = notGeneratedByParser
pretty' (BodyStmt _ (L loc (OpApp _ l o r)) _ _) =
pretty (L loc (InfixApp l o r True))
pretty (L loc (InfixApp l o r))
pretty' (BodyStmt _ body _ _) = pretty body
pretty' (LetStmt _ l) = string "let " |=> pretty l
pretty' (ParStmt _ xs _ _) = hvBarSep $ fmap pretty xs
Expand Down Expand Up @@ -2381,7 +2381,7 @@
pretty' (HsFloatPrim _ x) = pretty x >> string "#"
pretty' HsDoublePrim {} = notUsedInParsedStage
pretty' x =
case x of

Check warning on line 2384 in src/HIndent/Pretty.hs

View workflow job for this annotation

GitHub Actions / CI (ubuntu-latest, 8.10.7)

Pattern match(es) are non-exhaustive

Check warning on line 2384 in src/HIndent/Pretty.hs

View workflow job for this annotation

GitHub Actions / CI (macos-latest, 8.10.7)

Pattern match(es) are non-exhaustive

Check warning on line 2384 in src/HIndent/Pretty.hs

View workflow job for this annotation

GitHub Actions / CI (windows-latest, 8.10.7)

Pattern match(es) are non-exhaustive
HsString {} -> prettyString
HsStringPrim {} -> prettyString
where
Expand Down
1 change: 0 additions & 1 deletion src/HIndent/Pretty/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ data InfixApp = InfixApp
{ lhs :: LHsExpr GhcPs
, op :: LHsExpr GhcPs
, rhs :: LHsExpr GhcPs
, immediatelyAfterDo :: Bool
}

-- | `GRHSs` with a label indicating in which context the RHS is located
Expand Down