@@ -89,7 +89,7 @@ check' holes ctxt env top = chk env top where
89 (v, cs) <- get
89 (v, cs) <- get
90 let Set su = normalise ctxt env st
90 let Set su = normalise ctxt env st
91 let Set tu = normalise ctxt env tt
91 let Set tu = normalise ctxt env tt
92− when (not holes) $ put (v+1, ULT su (UVar v):ULT tu (UVar v):cs)
92+ when (not holes) $ put (v+1, ULE su (UVar v):ULE tu (UVar v):cs)
93 return (Bind n (Pi sv) (pToV n tv), Set (UVar v))
93 return (Bind n (Pi sv) (pToV n tv), Set (UVar v))
94 chk env (RBind n b sc)
94 chk env (RBind n b sc)
95 = do b' <- checkBinder b
95 = do b' <- checkBinder b
@@ -112,7 +112,7 @@ check' holes ctxt env top = chk env top where
112 (vv, vt) <- chk env v
112 (vv, vt) <- chk env v
113 let tv' = normalise ctxt env tv
113 let tv' = normalise ctxt env tv
114 let tt' = normalise ctxt env tt
114 let tt' = normalise ctxt env tt
115− convertsC ctxt env tv vt
115+ convertsC ctxt env vt tv
116 lift $ isSet ctxt env tt'
116 lift $ isSet ctxt env tt'
117 return (Let tv vv)
117 return (Let tv vv)
118 checkBinder (NLet t v)
118 checkBinder (NLet t v)
@@ -120,7 +120,7 @@ check' holes ctxt env top = chk env top where
120 (vv, vt) <- chk env v
120 (vv, vt) <- chk env v
121 let tv' = normalise ctxt env tv
121 let tv' = normalise ctxt env tv
122 let tt' = normalise ctxt env tt
122 let tt' = normalise ctxt env tt
123− convertsC ctxt env tv vt
123+ convertsC ctxt env vt tv
124 lift $ isSet ctxt env tt'
124 lift $ isSet ctxt env tt'
125 return (NLet tv vv)
125 return (NLet tv vv)
126 checkBinder (Hole t)
126 checkBinder (Hole t)
@@ -144,7 +144,7 @@ check' holes ctxt env top = chk env top where
144 (vv, vt) <- chk env v
144 (vv, vt) <- chk env v
145 let tv' = normalise ctxt env tv
145 let tv' = normalise ctxt env tv
146 let tt' = normalise ctxt env tt
146 let tt' = normalise ctxt env tt
147− convertsC ctxt env tv vt
147+ convertsC ctxt env vt tv
148 lift $ isSet ctxt env tt'
148 lift $ isSet ctxt env tt'
149 return (Guess tv vv)
149 return (Guess tv vv)
150 checkBinder (PVar t)
150 checkBinder (PVar t)