Skip to content

Commit

Permalink
Remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
toku-sa-n committed Nov 10, 2023
1 parent ae6fdf6 commit 3bb4270
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/HIndent/Pretty.hs
Original file line number Diff line number Diff line change
Expand Up @@ -790,26 +790,6 @@ prettyHsExpr (RecordUpd _ name fields) = hor <-|> ver
pretty name
newline
indentedBlock $ pretty fields
printHorFields ::
(Pretty a, Pretty b, CommentExtraction l)
=> [GenLocated l (HsFieldBind a b)]
-> Printer ()
printHorFields = hFields . fmap (`printCommentsAnd` horField)
printVerFields ::
(Pretty a, Pretty b, CommentExtraction l)
=> [GenLocated l (HsFieldBind a b)]
-> Printer ()
printVerFields = vFields . fmap printField
printField x = printCommentsAnd x $ (<-|>) <$> horField <*> verField
horField HsFieldBind {..} = do
pretty hfbLHS
string " = "
pretty hfbRHS
verField HsFieldBind {..} = do
pretty hfbLHS
string " ="
newline
indentedBlock $ pretty hfbRHS
#elif MIN_VERSION_ghc_lib_parser(9,4,1)
prettyHsExpr (RecordUpd _ name fields) = hor <-|> ver
where
Expand Down

0 comments on commit 3bb4270

Please sign in to comment.