forked from GitHub/gf-core
debugging new compilation
This commit is contained in:
@@ -63,7 +63,7 @@ computeTermOpt rec gr = comp where
|
||||
---- Computed t' -> return $ unComputed t'
|
||||
|
||||
Vr x -> do
|
||||
t' <- maybe (prtBad ("no value given to variable") x) return $ lookup x g
|
||||
t' <- maybe (prtBad ("no value for variable") x) return $ lookup x g
|
||||
case t' of
|
||||
_ | t == t' -> return t
|
||||
_ -> comp g t'
|
||||
|
||||
@@ -149,7 +149,11 @@ unifyJudgement old new = do
|
||||
---- (unwords ["illegal update of",prt oterm,"to",prt nterm])
|
||||
return nterm
|
||||
|
||||
|
||||
updateJudgement :: Ident -> Ident -> Judgement -> GF -> Err GF
|
||||
updateJudgement m c ju gf = do
|
||||
mo <- maybe (Bad (show m)) return $ Data.Map.lookup m $ gfmodules gf
|
||||
let mo' = mo {mjments = insert c ju (mjments mo)}
|
||||
return $ gf {gfmodules = insert m mo' (gfmodules gf)}
|
||||
|
||||
-- abstractions on Term
|
||||
|
||||
|
||||
Reference in New Issue
Block a user