on master help sign in
Replace `default tactics search` with the newer `auto`.
6b3307aLeif Warner
libs/base/Data/HVect.idr+3−3
@@ -56,17 +56,17 @@ instance (Shows k ts) => Show (HVect ts) where
56
56
57||| Extract an arbitrary element of the correct type.
57||| Extract an arbitrary element of the correct type.
58||| @ t the goal type
58||| @ t the goal type
59−get : {default tactics { search 100; } p : Elem t ts} -> HVect ts -> t
59+get : {auto p : Elem t ts} -> HVect ts -> t
60get {p = Here} (x::xs) = x
60get {p = Here} (x::xs) = x
61get {p = There p'} (x::xs) = get {p = p'} xs
61get {p = There p'} (x::xs) = get {p = p'} xs
62
62
63||| Replace an element with the correct type.
63||| Replace an element with the correct type.
64−put : {default tactics { search 100; } p : Elem t ts} -> t -> HVect ts -> HVect ts
64+put : {auto p : Elem t ts} -> t -> HVect ts -> HVect ts
65put {p = Here} y (x::xs) = y :: xs
65put {p = Here} y (x::xs) = y :: xs
66put {p = There p'} y (x::xs) = x :: put {p = p'} y xs
66put {p = There p'} y (x::xs) = x :: put {p = p'} y xs
67
67
68||| Update an element with the correct type.
68||| Update an element with the correct type.
69−update : {default tactics { search 100; } p : Elem t ts} -> (t -> u) -> HVect ts -> HVect (replaceByElem ts p u)
69+update : {auto p : Elem t ts} -> (t -> u) -> HVect ts -> HVect (replaceByElem ts p u)
70update {p = Here} f (x::xs) = f x :: xs
70update {p = Here} f (x::xs) = f x :: xs
71update {p = There p'} f (x::xs) = x :: update {p = p'} f xs
71update {p = There p'} f (x::xs) = x :: update {p = p'} f xs
72
72
libs/effects/Effects.idr+2−4
@@ -293,15 +293,13 @@ syntax MkDefaultEnv = with Env
293
293
294call : {a, b: _} -> {e : Effect} ->
294call : {a, b: _} -> {e : Effect} ->
295 (eff : e t a b) ->
295 (eff : e t a b) ->
296− {default tactics { search 100; }
297− prf : EffElem e a xs} ->
296+ {auto prf : EffElem e a xs} ->
298 EffM m t xs (\v => updateResTy v xs prf eff)
297 EffM m t xs (\v => updateResTy v xs prf eff)
299call e {prf} = callP prf e
298call e {prf} = callP prf e
300
299
301implicit
300implicit
302lift : EffM m t ys ys' ->
301lift : EffM m t ys ys' ->
303− {default tactics { search 100; }
304− prf : SubList ys xs} ->
302+ {auto prf : SubList ys xs} ->
305 EffM m t xs (\v => updateWith (ys' v) xs prf)
303 EffM m t xs (\v => updateWith (ys' v) xs prf)
306lift e {prf} = liftP prf e
304lift e {prf} = liftP prf e
307
305