fix(library/data/tuple): modify definition to make sure we can compile it using new type class resolution procedure

The issue are universe level constraints that cannot be solved by the
new procedure.
This commit is contained in:
Leonardo de Moura 2015-10-22 16:11:55 -07:00
parent 8d8e43abfd
commit a10aef0792

View file

@ -34,7 +34,7 @@ namespace tuple
| (succ n) := inhabited.mk (inhabited.value h :: inhabited.value (is_inhabited n))
protected definition has_decidable_eq [instance] [h : decidable_eq A] : ∀ (n : nat), decidable_eq (tuple A n) :=
_
λ n, subtype.has_decidable_eq
definition head {n : nat} : tuple A (succ n) → A
| (tag [] h) := by contradiction