@@ -53,9 +53,7 @@ data Expr' ann def var typ
53 | Case (Expr ann def var typ) [(Pattern.Pattern ann var, Expr ann def var typ)]
53 | Case (Expr ann def var typ) [(Pattern.Pattern ann var, Expr ann def var typ)]
54 | Data String [Expr ann def var typ]
54 | Data String [Expr ann def var typ]
55 | Access (Expr ann def var typ) String
55 | Access (Expr ann def var typ) String
56− | Remove (Expr ann def var typ) String
57− | Insert (Expr ann def var typ) String (Expr ann def var typ)
58− | Modify (Expr ann def var typ) [(String, Expr ann def var typ)]
56+ | Update (Expr ann def var typ) [(String, Expr ann def var typ)]
59 | Record [(String, Expr ann def var typ)]
57 | Record [(String, Expr ann def var typ)]
60 -- for type checking and code gen only
58 -- for type checking and code gen only
61 | Port (PortImpl (Expr ann def var typ) typ)
59 | Port (PortImpl (Expr ann def var typ) typ)
@@ -215,30 +213,7 @@ instance (P.Pretty def, P.Pretty var, Var.ToString var) => P.Pretty (Expr' ann d
215 Access record field ->
213 Access record field ->
216 P.pretty dealiaser True record <> P.text "." <> P.text field
214 P.pretty dealiaser True record <> P.text "." <> P.text field
218− Remove record field ->
219− P.braces (P.pretty dealiaser False record <+> P.text "-" <+> P.text field)
221− Insert (A.A _ (Remove record oldField)) newField expr ->
224− [ P.pretty dealiaser False record
230− , P.pretty dealiaser False expr
233− Insert record field expr ->
235− P.pretty dealiaser False record
239− <+> P.pretty dealiaser False expr
241− Modify record fields ->
216+ Update record fields ->
242 P.braces $
217 P.braces $
244 (P.pretty dealiaser False record <+> P.text "|")
219 (P.pretty dealiaser False record <+> P.text "|")