@@ -54,9 +54,7 @@ data Expr' ann def var typ
54 | Case (Expr ann def var typ) [(Pattern.Pattern ann var, Expr ann def var typ)]
54 | Case (Expr ann def var typ) [(Pattern.Pattern ann var, Expr ann def var typ)]
55 | Data String [Expr ann def var typ]
55 | Data String [Expr ann def var typ]
56 | Access (Expr ann def var typ) String
56 | Access (Expr ann def var typ) String
57− | Remove (Expr ann def var typ) String
58− | Insert (Expr ann def var typ) String (Expr ann def var typ)
59− | Modify (Expr ann def var typ) [(String, Expr ann def var typ)]
57+ | Update (Expr ann def var typ) [(String, Expr ann def var typ)]
60 | Record [(String, Expr ann def var typ)]
58 | Record [(String, Expr ann def var typ)]
61 -- for type checking and code gen only
59 -- for type checking and code gen only
62 | Port (PortImpl (Expr ann def var typ) typ)
60 | Port (PortImpl (Expr ann def var typ) typ)
@@ -228,30 +226,7 @@ instance (P.Pretty def, P.Pretty var, Var.ToString var) => P.Pretty (Expr' ann d
228 Access record field ->
226 Access record field ->
229 P.pretty dealiaser True record <> P.text "." <> P.text field
227 P.pretty dealiaser True record <> P.text "." <> P.text field
231− Remove record field ->
232− P.braces (P.pretty dealiaser False record <+> P.text "-" <+> P.text field)
234− Insert (A.A _ (Remove record oldField)) newField expr ->
237− [ P.pretty dealiaser False record
243− , P.pretty dealiaser False expr
246− Insert record field expr ->
248− P.pretty dealiaser False record
252− <+> P.pretty dealiaser False expr
254− Modify record fields ->
229+ Update record fields ->
255 P.braces $
230 P.braces $
257 (P.pretty dealiaser False record <+> P.text "|")
232 (P.pretty dealiaser False record <+> P.text "|")