You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.
Processing this code fails when DFunUnfolding and CoreUnfolding constructors are skipped
(working around by redefining the function).
substUnfolding subst df@(DFunUnfolding { df_bndrs = bndrs, df_args = args })
= df { df_bndrs = bndrs', df_args = args' }
where
(subst',bndrs') = substBndrs subst bndrs
args' = map (substExpr (text "subst-unf:dfun") subst') args
substUnfolding subst unf@(CoreUnfolding { uf_tmpl = tmpl, uf_src = src })
-- Retain an InlineRule!
| not (isStableSource src) -- Zap an unstable unfolding, to save substitution work
= NoUnfolding
| otherwise -- But keep a stable one!
= seqExpr new_tmpl `seq`
unf { uf_tmpl = new_tmpl }
where
new_tmpl = substExpr (text "subst-unf") subst tmpl
substUnfolding _ unf = unf -- NoUnfolding, OtherCon
The error message is
invalid record update with non-record-fields `Core.df_args' and `Core.df_bndrs' unsupported [in definition CoreSubst.substUnfolding in module CoreSubst]
The text was updated successfully, but these errors were encountered:
Processing this code fails when DFunUnfolding and CoreUnfolding constructors are skipped
(working around by redefining the function).
The error message is
The text was updated successfully, but these errors were encountered: