bugfixes in the typechecker and the tree generator

This commit is contained in:
kr.angelov
2011-08-30 11:24:59 +00:00
parent 9a899edb0b
commit dbe00fd0eb
4 changed files with 15 additions and 6 deletions

View File

@@ -99,9 +99,7 @@ prove dp scope (TTyp env1 (DTyp hypos1 cat es1)) = do
mv <- getMeta i
case mv of
MBound e -> c e
MUnbound _ scope tty cs -> do e <- prove dp scope tty
setMeta i (MBound e)
sequence_ [c e | c <- (c:cs)]
MUnbound x scope tty cs -> setMeta i (MUnbound x scope tty (c:cs))
abs [] e = e
abs ((bt,x,ty):hypos) e = EAbs bt x (abs hypos e)