From: Simon Huber Date: Mon, 4 May 2015 10:32:18 +0000 (+0200) Subject: nicer error msg X-Git-Url: https://git.ak3n.com/?a=commitdiff_plain;h=09706af00bc663d244dc7ed9c37b8c42541193f7;p=cubicaltt.git nicer error msg --- diff --git a/TypeChecker.hs b/TypeChecker.hs index 979fbbc..92af3a5 100644 --- a/TypeChecker.hs +++ b/TypeChecker.hs @@ -319,8 +319,8 @@ checkBranch (PLabel _ tele is ts,nu) f (PBranch c ns js e) g va = do let veborder = border ve vts unlessM (veborder === vgts) $ throwError $ "Faces in branch for " ++ show c ++ " don't match:" - ++ "\ngot\n" ++ show veborder ++ "\nbut expected\n" - ++ show vgts + ++ "\ngot\n" ++ showSystem veborder ++ "\nbut expected\n" + ++ showSystem vgts checkFormula :: Formula -> Typing () checkFormula phi = do