@@ -73,14 +73,14 @@ match_unify ctxt env topx topy inj holes from =
73 let topxn = renameBindersTm env (normalise ctxt env topx)
73 let topxn = renameBindersTm env (normalise ctxt env topx)
74 topyn = renameBindersTm env (normalise ctxt env topy) in
74 topyn = renameBindersTm env (normalise ctxt env topy) in
75 case runStateT (un [] topxn topyn)
75 case runStateT (un [] topxn topyn)
76− (UI 0 []) of
76+ (UI 0 []) of
77 OK (v, UI _ fails) ->
77 OK (v, UI _ fails) ->
78 do v' <- trimSolutions topx topy from env v
78 do v' <- trimSolutions topx topy from env v
79 return (map (renameBinders env) v')
79 return (map (renameBinders env) v')
80 Error e ->
80 Error e ->
81 -- just normalise the term we're matching against
81 -- just normalise the term we're matching against
82 case runStateT (un [] topxn topy)
82 case runStateT (un [] topxn topy)
83− (UI 0 []) of
83+ (UI 0 []) of
84 OK (v, UI _ fails) ->
84 OK (v, UI _ fails) ->
85 do v' <- trimSolutions topx topy from env v
85 do v' <- trimSolutions topx topy from env v
86 return (map (renameBinders env) v')
86 return (map (renameBinders env) v')
@@ -286,12 +286,12 @@ unify ctxt env topx topy inj holes usersupp from =
286 topyn = renameBindersTm env (normalise ctxt env topy) in
286 topyn = renameBindersTm env (normalise ctxt env topy) in
287-- trace ("Unifying " ++ show (topx, topy) ++ "\n\n==>\n" ++ show (topxn, topyn) ++ "\n\n" ++ show res ++ "\n\n") $
287-- trace ("Unifying " ++ show (topx, topy) ++ "\n\n==>\n" ++ show (topxn, topyn) ++ "\n\n" ++ show res ++ "\n\n") $
288 case runStateT (un False [] topxn topyn)
288 case runStateT (un False [] topxn topyn)
289− (UI 0 []) of
289+ (UI 0 []) of
290 OK (v, UI _ fails) ->
290 OK (v, UI _ fails) ->
291 do v' <- trimSolutions topx topy from env v
291 do v' <- trimSolutions topx topy from env v
292 return (map (renameBinders env) v', reverse fails)
292 return (map (renameBinders env) v', reverse fails)
293-- Error e@(CantUnify False _ _ _ _ _) -> tfail e
293-- Error e@(CantUnify False _ _ _ _ _) -> tfail e
294− Error e -> tfail e
294+ Error e -> tfail e
296 headDiff (P (DCon _ _ _) x _) (P (DCon _ _ _) y _) = x /= y
296 headDiff (P (DCon _ _ _) x _) (P (DCon _ _ _) y _) = x /= y
297 headDiff (P (TCon _ _) x _) (P (TCon _ _) y _) = x /= y
297 headDiff (P (TCon _ _) x _) (P (TCon _ _) y _) = x /= y