We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f5055e commit fc261eaCopy full SHA for fc261ea
copilot-prettyprinter/src/Copilot/PrettyPrint.hs
@@ -100,6 +100,9 @@ ppOp2 op = case op of
100
BwShiftL _ _ -> ppInfix "<<"
101
BwShiftR _ _ -> ppInfix ">>"
102
Index _ -> ppInfix ".!!"
103
+ UpdateField (Struct _) _ f -> \ doc1 doc2 ->
104
+ parens $ doc1 <+> text "##" <+> text (accessorName f) <+> text "=:" <+> doc2
105
+ UpdateField _ _ _ -> impossible "ppOp2" "Copilot.PrettyPrint"
106
107
-- | Pretty-print a ternary operation.
108
ppOp3 :: Op3 a b c d -> Doc -> Doc -> Doc -> Doc
0 commit comments