Skip to content

Commit

Permalink
fix(eo-phi-normalizer): don't print space in an empty formation
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp committed Nov 29, 2024
1 parent 0073138 commit 578774a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eo-phi-normalizer/src/Language/EO/Phi/Syntax.hs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ render d = rend 0 False (map ($ "") $ d []) ""
rend i p = \case
"[" : "]" : ts -> showString "[]" . rend i False ts
"(" : ")" : (t : ts) -> handleTrailingComma "()" t ts
"" : "" : (t : ts) -> handleTrailingComma " " t ts
"" : "" : (t : ts) -> handleTrailingComma "⟦⟧" t ts
"[" : ts -> char '[' . rend i False ts
"(" : ts -> char '(' . new (i + 1) ts
"{" : "" : ts -> showChar '{' . onNewLine (i + 1) p . showChar '' . new (i + 2) ts
Expand Down

0 comments on commit 578774a

Please sign in to comment.