From e5c8636a5f608af83d918e62533306cf7ddc7118 Mon Sep 17 00:00:00 2001 From: krasimir Date: Sat, 23 May 2009 21:33:52 +0000 Subject: now in the command shell the primary type in the pipe is Expr not Tree. This makes the pt -compute and pt -typecheck more interesting --- src/PGF/Paraphrase.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/PGF/Paraphrase.hs') diff --git a/src/PGF/Paraphrase.hs b/src/PGF/Paraphrase.hs index 64f9375d0..fecfe34bb 100644 --- a/src/PGF/Paraphrase.hs +++ b/src/PGF/Paraphrase.hs @@ -49,7 +49,7 @@ fromDef pgf t@(Fun f ts) = defDown t ++ defUp t where [(ps,p) | (p,d@(Fun g ps)) <- equs, g==f, isClosed d || (length equs == 1 && isLinear d)] - equss = [(f,[(Fun f (map patt2tree ps), expr2tree (funs (abstract pgf)) d) | (Equ ps d) <- eqs]) | + equss = [(f,[(Fun f (map patt2tree ps), expr2tree d) | (Equ ps d) <- eqs]) | (f,(_,_,eqs)) <- Map.assocs (funs (abstract pgf)), not (null eqs)] trequ s f e = True ----trace (s ++ ": " ++ show f ++ " " ++ show e) True -- cgit v1.2.3