Skip to content

Deriving Data instances for AnnExpr

Zejun Wu requested to merge watashi/ghc:ann_expr_deriv_data into master

We have Data instances for CoreExpr, but not CoreExprWithFVs. It will be handy to have these so we can play with it using syb without writing a lot of biolerplate code. Right now, we need to workaround by standalone deriving orphan instances for them.

deriving instance (Data a, Data b) => Data (AnnExpr' a b)
deriving instance (Data a, Data b) => Data (AnnBind a b)

Merge request reports