Skip to content

Commit

Permalink
reverting common.hs
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtimmy committed Feb 20, 2024
1 parent f66afdc commit 41d3b82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gibbon-compiler/src/Gibbon/Common.hs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ newUniq = state (\x -> (x, x+1))

-- | Generate a unique symbol by attaching a numeric suffix.
gensym :: MonadState Int m => Var -> m Var
gensym v = state (\n -> (cleanFunName v `varAppend` "_/v" `varAppend` toVar (show n), n + 1))
gensym v = state (\n -> (cleanFunName v `varAppend` toVar (show n), n + 1))

gensym_tag :: MonadState Int m => Var -> String -> m Var
gensym_tag v str = state (\n -> (cleanFunName v `varAppend` toVar (show n ++ str) , n + 1))
Expand Down

0 comments on commit 41d3b82

Please sign in to comment.