Skip to content

Commit

Permalink
use nest instead of hang
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Jun 7, 2023
1 parent 4fc6b5c commit 8f86037
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Juvix/Compiler/Concrete/Print/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ instance SingI s => PrettyPrint (Iterator s) where
rngs' = parens . sepSemicolon <$> nonEmpty rngs
b = ppExpressionType _iteratorBody
parensIf _iteratorParens $
hang (n <+?> is' <+?> rngs' <> oneLineOrNextNoIndent b)
nest (n <+?> is' <+?> rngs' <> oneLineOrNextNoIndent b)

instance PrettyPrint S.AName where
ppCode (S.AName n) = annotated (AnnKind (S.getNameKind n)) (noLoc (pretty (n ^. S.nameVerbatim)))
Expand Down Expand Up @@ -744,7 +744,7 @@ instance SingI s => PrettyPrint (FunctionClause s) where
Nothing -> Nothing
Just ne -> Just (hsep (ppPatternAtom <$> ne))
clauseBody' = ppExpressionType _clauseBody
hang
nest
( clauseFun'
<+?> clausePatterns'
)
Expand Down

0 comments on commit 8f86037

Please sign in to comment.