@@ -558,7 +558,7 @@ solve _ _ h@(Bind x t sc)
558558 = do ps <- get
559559 case findType x sc of
560560 Just t -> lift $ tfail (CantInferType (show t))
561− _ -> fail $ "Not a guess " ++ show h ++ "\n" ++ show (holes ps, pterm ps)
561+ _ -> lift $ tfail (IncompleteTerm h)
562562 where findType x (Bind n (Let t v) sc)
563563 = findType x v `mplus` findType x sc
564564 findType x (Bind n t sc)
@@ -859,8 +859,8 @@ mergeNotunified env ns = mnu ns [] [] where
859859 mnu [] ns_acc ps_acc = (reverse ns_acc, reverse ps_acc)
860860 mnu ((n, t):ns) ns_acc ps_acc
861861 | Just t' <- lookup n ns, t /= t'
862− = mnu ns ((n,t') : ns_acc)
863− ((t,t',env,Msg "", [],Unify) : ps_acc)
862+ = mnu ns ((n,t') : ns_acc)
863+ ((t,t',env,CantUnify True t t' (Msg "") [] 0, [],Match) : ps_acc)
864864 | otherwise = mnu ns ((n,t) : ns_acc) ps_acc
865865
866866updateNotunified [] nu = nu