on master help sign in
Replace `default tactics search` with the newer `auto`.
commit6b3307a9dc329da51c4d2f2e8b1894764a898b90 authorLeif Warner <abimelech@gmail.com> dateTue 26 May 2015, 14:51 (11 years ago) parent5f33e4a
2 files changed+5−7
libs/base/Data/HVect.idr+3−3 libs/effects/Effects.idr+2−4
libs/base/Data/HVect.idr+3−3
@@ -56,17 +56,17 @@ instance (Shows k ts) => Show (HVect ts) where
5656
5757||| Extract an arbitrary element of the correct type.
5858||| @ 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
6060get {p = Here} (x::xs) = x
6161get {p = There p'} (x::xs) = get {p = p'} xs
6262
6363||| 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
6565put {p = Here} y (x::xs) = y :: xs
6666put {p = There p'} y (x::xs) = x :: put {p = p'} y xs
6767
6868||| 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)
7070update {p = Here} f (x::xs) = f x :: xs
7171update {p = There p'} f (x::xs) = x :: update {p = p'} f xs
7272
libs/effects/Effects.idr+2−4
@@ -293,15 +293,13 @@ syntax MkDefaultEnv = with Env
293293
294294call : {a, b: _} -> {e : Effect} ->
295295 (eff : e t a b) ->
296− {default tactics { search 100; }
297− prf : EffElem e a xs} ->
296+ {auto prf : EffElem e a xs} ->
298297 EffM m t xs (\v => updateResTy v xs prf eff)
299298call e {prf} = callP prf e
300299
301300implicit
302301lift : EffM m t ys ys' ->
303− {default tactics { search 100; }
304− prf : SubList ys xs} ->
302+ {auto prf : SubList ys xs} ->
305303 EffM m t xs (\v => updateWith (ys' v) xs prf)
306304lift e {prf} = liftP prf e
307305