use dots for record fields

This commit is contained in:
rhiannon morris 2021-09-03 16:31:53 +02:00
parent 9fb4ad6657
commit bc1aa21f09
4 changed files with 7 additions and 8 deletions

View file

@ -37,7 +37,7 @@ DSubst = Subst Dim
export %inline
prettyDSubst : Pretty.HasEnv m => DSubst from to -> m (Doc HL)
prettyDSubst th =
prettySubstM prettyM (dnames !ask) DVar
prettySubstM prettyM (!ask).dnames DVar
!(ifUnicode "" "<") !(ifUnicode "" ">") th

View file

@ -118,4 +118,4 @@ prettySubstM pr names bnd op cl th =
||| prints with [square brackets] and the `TVar` highlight for variables
export
PrettyHL (f to) => PrettyHL (Subst f from to) where
prettyM th = prettySubstM prettyM (tnames !ask) TVar "[" "]" th
prettyM th = prettySubstM prettyM (!ask).tnames TVar "[" "]" th

View file

@ -167,7 +167,7 @@ mutual
export covering
prettyTSubst : Pretty.HasEnv m => TSubst d from to -> m (Doc HL)
prettyTSubst s = prettySubstM prettyM (tnames !ask) TVar "[" "]" s
prettyTSubst s = prettySubstM prettyM (!ask).tnames TVar "[" "]" s
export covering
prettyBinder : Pretty.HasEnv m => List Qty -> Name -> Term d n -> m (Doc HL)