on master help sign in
Don't do trace when `with` doesn't match

This breaks IDESlave support. RE #879

commit1cdd0df01dd5c802b96c1518361f88eb432f5b7e authorDavid Raymond Christiansen <david@davidchristiansen.dk> dateFri 11 Jul 2014, 13:57 (12 years ago) parent72f7b58
1 file changed+1−1
src/Idris/ElabDecls.hs+1−1
src/Idris/ElabDecls.hs+1−1
@@ -1830,7 +1830,7 @@ elabClause info opts (_, PWith fc fname lhs_in withs wval_in withblock)
18301830 logLvl 2 ("Matching " ++ showTmImpls tm ++ " against " ++
18311831 showTmImpls toplhs)
18321832 case matchClause i toplhs tm of
1833− Left (a,b) -> trace ("matchClause: " ++ show a ++ " =/= " ++ show b) (ifail $ show fc ++ ":with clause does not match top level")
1833+ Left (a,b) -> ifail $ show fc ++ ":with clause does not match top level"
18341834 Right mvars ->
18351835 do logLvl 3 ("Match vars : " ++ show mvars)
18361836 lhs <- updateLHS n wname mvars ns ns' (fullApp tm) w