@@ -796,10 +796,12 @@ updateProblems ctxt ns ps inj holes = up ns ps where
796 y' = updateSolved ns y
796 y' = updateSolved ns y
797 err' = updateError ns err
797 err' = updateError ns err
798 env' = updateEnv ns env in
798 env' = updateEnv ns env in
799+-- trace ("Updating " ++ show (x',y')) $
799− case unify ctxt env' x' y' inj holes of
800+ case unify ctxt env' x' y' inj holes of
800 OK (v, []) -> -- trace ("Added " ++ show v ++ " from " ++ show (x', y')) $
801 OK (v, []) -> -- trace ("Added " ++ show v ++ " from " ++ show (x', y')) $
801 up (ns ++ v) ps
802 up (ns ++ v) ps
803+ e -> -- trace ("Failed " ++ show e) $
802− _ -> let (ns', ps') = up ns ps in
804+ let (ns', ps') = up ns ps in
803 (ns', (x',y',env',err', um) : ps')
805 (ns', (x',y',env',err', um) : ps')
805-- attempt to solve remaining problems with match_unify
807-- attempt to solve remaining problems with match_unify
@@ -873,7 +875,9 @@ processTactic t ps
873 (h:_) -> do ps' <- execStateT (process t h) ps
875 (h:_) -> do ps' <- execStateT (process t h) ps
874 let (ns', probs')
876 let (ns', probs')
875 = case solved ps' of
877 = case solved ps' of
878+ Just s -> traceWhen (unifylog ps')
879+ ("SOLVED " ++ show s) $
876− Just s -> updateProblems (context ps')
880+ updateProblems (context ps')
877 [s] (problems ps')
881 [s] (problems ps')
878 (injective ps')
882 (injective ps')
879 (holes ps')
883 (holes ps')