Removed a few bits of awkwardness in Unnest

This commit is contained in:
Neil Brown 2009-03-26 18:37:16 +00:00
parent d35825ec50
commit ffbf4bed87

View File

@ -180,9 +180,9 @@ removeNesting = pass "Pull nested definitions to top level"
[Prop.nestedPulled]
(passOnlyOnAST "removeNesting" $ \s ->
do pushPullContext
s' <- (makeRecurse ops) s >>= applyPulled
s' <- recurse s >>= applyPulled
popPullContext
return $ fromJust $ cast s')
return s')
where
ops :: Ops
ops = baseOp `extOpS` doStructured