Skip to content

Commit

Permalink
fix: use generateSafeName for function params as well
Browse files Browse the repository at this point in the history
  • Loading branch information
aboeglin committed Apr 14, 2024
1 parent 9bf9f79 commit 3e85b2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/main/Generate/Javascript.hs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ instance Compilable Exp where
where
compileAbs :: Maybe [Exp] -> [Name] -> [Exp] -> String
compileAbs _ params body =
let params' = intercalate " => " params
let params' = intercalate " => " (generateSafeName <$> params)
in "("
<> params'
<> " => "
Expand Down

0 comments on commit 3e85b2d

Please sign in to comment.