Skip to content

Commit 2719ff6

Browse files
authored
ES: Readded non-recursive comments
1 parent 8493766 commit 2719ff6

File tree

1 file changed

+4
-4
lines changed
  • grin/src/Transformations/ExtendedSyntax

1 file changed

+4
-4
lines changed

grin/src/Transformations/ExtendedSyntax/Util.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,19 +107,19 @@ mapNameUseExp f = \case
107107
subst :: Ord a => Map a a -> a -> a
108108
subst env x = Map.findWithDefault x x env
109109

110-
-- substitute all @Names@s in an @Exp@
110+
-- substitute all @Names@s in an @Exp@ (non-recursive)
111111
substVarRefExp :: Map Name Name -> Exp -> Exp
112112
substVarRefExp env = mapNameUseExp (subst env)
113113

114-
-- substitute all @Names@s in a @Val@
114+
-- substitute all @Names@s in a @Val@ (non-recursive)
115115
substNamesVal :: Map Name Name -> Val -> Val
116116
substNamesVal env = mapNamesVal (subst env)
117117

118-
-- specialized version of @subst@ to @Val@s
118+
-- specialized version of @subst@ to @Val@s (non-recursive)
119119
substValsVal :: Map Val Val -> Val -> Val
120120
substValsVal env = subst env
121121

122-
-- substitute all @Val@s in an @Exp@
122+
-- substitute all @Val@s in an @Exp@ (non-recursive)
123123
substVals :: Map Val Val -> Exp -> Exp
124124
substVals env = mapValsExp (subst env)
125125

0 commit comments

Comments
 (0)