summaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2011-12-08 09:18:38 +0000
committerkr.angelov <kr.angelov@gmail.com>2011-12-08 09:18:38 +0000
commit7c9bbd844b1a8d070817f3337012ccfe1a624189 (patch)
treeeee0e5475d48e71ae2914d9f855a754c1bbe1c5a /src/runtime
parentd8b68c85b65db6e9212b20f0252842f8338d99c4 (diff)
Now graphvizAbstractTree suppress the visualization of implicit arguments.
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/haskell/PGF/VisualizeTree.hs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/runtime/haskell/PGF/VisualizeTree.hs b/src/runtime/haskell/PGF/VisualizeTree.hs
index dfb1cbd75..20fb6b925 100644
--- a/src/runtime/haskell/PGF/VisualizeTree.hs
+++ b/src/runtime/haskell/PGF/VisualizeTree.hs
@@ -56,13 +56,12 @@ graphvizAbstractTree pgf (funs,cats) = render . tree2graph
getAbs xs (EAbs _ x e) = getAbs (x:xs) e
getAbs xs (ETyped e _) = getAbs xs e
- getAbs xs (EImplArg e) = getAbs xs e
getAbs xs e = (xs,e)
- getApp (EApp x y) es = getApp x (y:es)
- getApp (ETyped e _) es = getApp e es
- getApp (EImplArg e) es = getApp e es
- getApp e es = (e,es)
+ getApp (EApp x (EImplArg y)) es = getApp x es
+ getApp (EApp x y) es = getApp x (y:es)
+ getApp (ETyped e _) es = getApp e es
+ getApp e es = (e,es)
getLbl scope (EFun f) = let fun = if funs then ppCId f else empty
cat = if cats then ppCId (lookValCat (abstract pgf) f) else empty