on master help sign in
Chase type classes for longer
commit92d99f8b7c5392f1f092d6aa9348cbe116be83bb authorEdwin Brady <eb@cs.st-andrews.ac.uk> dateTue 14 Feb 2012, 11:02 (15 years ago) parent463e62a
2 files changed+8−2
CHANGELOG+6 src/Idris/ElabTerm.hs+2−2
CHANGELOG+6
@@ -1,8 +1,14 @@
11New in 0.9.2:
22-------------
33
4+User visible changes:
5+
46* case expressions allowed in type signatures
57
8+Internal changes:
9+
10+* Some type class resolution fixes
11+
612New in 0.9.1:
713-------------
814
src/Idris/ElabTerm.hs+2−2
@@ -101,7 +101,7 @@ elab ist info pattern tcgen fn tm
101101 (elab' ina (PRef fc unitTy))
102102 elab' ina (PFalse fc) = elab' ina (PRef fc falseTy)
103103 elab' ina (PResolveTC (FC "HACK" _)) -- for chasing parent classes
104− = resolveTC 2 fn ist
104+ = resolveTC 5 fn ist
105105 elab' ina (PResolveTC fc) = do c <- unique_hole (MN 0 "c")
106106 instanceArg c
107107 elab' ina (PRefl fc) = elab' ina (PApp fc (PRef fc eqCon) [pimp (MN 0 "a") Placeholder,
@@ -366,7 +366,7 @@ resolveTC depth fn ist
366366 tm <- get_term
367367-- traceWhen (depth > 6) ("GOAL: " ++ show t ++ "\nTERM: " ++ show tm) $
368368-- (tryAll (map elabTC (map fst (ctxtAlist (tt_ctxt ist)))))
369− let depth' = if scopeOnly then 2 else depth
369+ let depth' = if scopeOnly then 5 else depth
370370 blunderbuss t depth' insts)
371371 where
372372 elabTC n | n /= fn && tcname n = (resolve n depth, show n)