Skip to content

Commit 554ec2c

Browse files
committed
more logs
1 parent 4526ec0 commit 554ec2c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/TTImp/Elab/Check.idr

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ Show (ImplBinding vars) where
7474
show (NameBinding _ c p tm ty) = show (tm, ty)
7575
show (AsBinding c p tm ty pat) = show (tm, ty) ++ "@" ++ show tm
7676

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+
7785
export
7886
bindingMetas : ImplBinding vars -> NameMap Bool
7987
bindingMetas (NameBinding _ c p tm ty) = getMetas ty

0 commit comments

Comments
 (0)