1
0
forked from GitHub/gf-core

unifying judgement information - now easy

This commit is contained in:
aarne
2007-12-04 15:23:49 +00:00
parent 4279b17762
commit 61763b5784
2 changed files with 10 additions and 2 deletions

View File

@@ -64,6 +64,11 @@ paramConstructors p cs =
-- unifying contents of judgements
---- used in SourceToGF; make error-free and informative
unifyJudgements (Left j) (Left k) = Left $ case unifyJudgement j k of
Ok l -> l
Bad s -> error s
unifyJudgement :: Judgement -> Judgement -> Err Judgement
unifyJudgement old new = do
testErr (jform old == jform new) "different judment forms"