We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4526ec0 commit 554ec2cCopy full SHA for 554ec2c
1 file changed
src/TTImp/Elab/Check.idr
@@ -74,6 +74,14 @@ Show (ImplBinding vars) where
74
show (NameBinding _ c p tm ty) = show (tm, ty)
75
show (AsBinding c p tm ty pat) = show (tm, ty) ++ "@" ++ show tm
76
77
+export
78
+HasNames (ImplBinding vars) where
79
+ full gam (NameBinding fc c p tm ty) = pure (NameBinding fc c p !(full gam tm) !(full gam ty))
80
+ full gam (AsBinding c p tm ty pat) = pure (AsBinding c p tm !(full gam ty) !(full gam pat))
81
+
82
+ resolved gam (NameBinding fc c p tm ty) = pure (NameBinding fc c p !(resolved gam tm) !(resolved gam ty))
83
+ resolved gam (AsBinding c p tm ty pat) = pure (AsBinding c p tm !(resolved gam ty) !(resolved gam pat))
84
85
export
86
bindingMetas : ImplBinding vars -> NameMap Bool
87
bindingMetas (NameBinding _ c p tm ty) = getMetas ty
0 commit comments