File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -288,6 +288,7 @@ catsForPOS env = M.fromListWith (++) $
288288expandMacro :: UDEnv -> AbsTree -> AbsTree
289289expandMacro env tr@ (RTree f ts) = case M. lookup f (macroFunctions (cncLabels env)) of
290290 Just (MacroFunction _ xx df _) | length ts' == length xx ->
291+ expandMacro env $
291292 subst (zip xx ts') df
292293 _ -> RTree f ts'
293294 where
@@ -296,7 +297,7 @@ expandMacro env tr@(RTree f ts) = case M.lookup f (macroFunctions (cncLabels env
296297 case us of
297298 [] -> maybe t id (lookup h xts)
298299 -- Expand head: #auxfun Ex a b : A -> B -> C = a b ; cn head
299- _ | Just (RTree h' hus) <- lookup h xts -> expandMacro env $ RTree h' (hus ++ map (subst xts) us)
300+ _ | Just (RTree h' hus) <- lookup h xts -> RTree h' (hus ++ map (subst xts) us)
300301 _ -> RTree h (map (subst xts) us)
301302
302303----------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments