add %inline to some instances

This commit is contained in:
rhiannon morris 2022-02-27 01:47:55 +01:00
parent 76c02adf03
commit 7d821b20ef

View file

@ -23,12 +23,12 @@ public export
(VS i).nat = S i.nat (VS i).nat = S i.nat
%transform "Var.(.nat)" Var.(.nat) i = believe_me i %transform "Var.(.nat)" Var.(.nat) i = believe_me i
public export Cast (Var n) Nat where cast = (.nat) public export %inline Cast (Var n) Nat where cast = (.nat)
public export Cast (Var n) Integer where cast = cast . cast {to = Nat} public export %inline Cast (Var n) Integer where cast = cast . cast {to = Nat}
export Eq (Var n) where i == j = i.nat == j.nat export %inline Eq (Var n) where i == j = i.nat == j.nat
export Ord (Var n) where compare i j = compare i.nat j.nat export %inline Ord (Var n) where compare i j = compare i.nat j.nat
export Show (Var n) where showPrec d i = showCon d "V" $ showArg i.nat export %inline Show (Var n) where showPrec d i = showCon d "V" $ showArg i.nat
parameters {auto _ : Pretty.HasEnv m} parameters {auto _ : Pretty.HasEnv m}