Added a case in pullRepCountSeq for ForEach replicators
This commit is contained in:
parent
35ebd43f79
commit
e2f5d18169
|
@ -182,7 +182,10 @@ pullRepCounts = doGeneric `extM` doProcess
|
||||||
spec@(A.Specification _ nonceName _) <- makeNonceIsExpr "rep_for" m' t for
|
spec@(A.Specification _ nonceName _) <- makeNonceIsExpr "rep_for" m' t for
|
||||||
s' <- pullRepCountSeq s
|
s' <- pullRepCountSeq s
|
||||||
return $ A.Spec m spec $ A.Rep m (A.For m' n from (A.ExprVariable m' $ A.Variable m' nonceName)) s'
|
return $ A.Spec m spec $ A.Rep m (A.For m' n from (A.ExprVariable m' $ A.Variable m' nonceName)) s'
|
||||||
|
-- Other replicators (such as ForEach)
|
||||||
|
pullRepCountSeq (A.Rep m rep s)
|
||||||
|
= do s' <- pullRepCountSeq s
|
||||||
|
return $ A.Rep m rep s'
|
||||||
|
|
||||||
transformConstr :: Data t => t -> PassM t
|
transformConstr :: Data t => t -> PassM t
|
||||||
transformConstr = doGeneric `ext1M` doStructured
|
transformConstr = doGeneric `ext1M` doStructured
|
||||||
|
|
Loading…
Reference in New Issue
Block a user