on master help sign in
Rule out more cases in 'recoverable'

Fixes #1136

commit4c452e7af15605dd5bcf607e442de780175fc206 authorEdwin Brady <ecb10@st-andrews.ac.uk> dateWed 30 Apr 2014, 15:57 (12 years ago) parent62705e4
1 file changed+3−1
src/Idris/Core/Unify.hs+3−1
src/Idris/Core/Unify.hs+3−1
@@ -608,7 +608,9 @@ recoverable f (Bind _ (Pi _) sc)
608608recoverable (Bind _ (Pi _) sc) f
609609 | (P (DCon _ _) _ _, _) <- unApply f = False
610610 | (P (TCon _ _) _ _, _) <- unApply f = False
611−recoverable _ _ = True
611+recoverable (Bind _ (Lam _) sc) f = recoverable sc f
612+recoverable f (Bind _ (Lam _) sc) = recoverable f sc
613+recoverable x y = True
612614
613615errEnv = map (\(x, b) -> (x, binderTy b))
614616