Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[haskell-servant][haskell-yesod] fix specialCharReplacements (#16289)
HaskellServantCodegen and HaskellYesodServerCodegen modify specialCharReplacements by replacing its keys: backslash ("\\") with "\\\\" and "\"" with "\\\"". It seems that those replacements were for using the keys in string literals in the specialChars table in the generated code. However, modifying the keys causes the substitution of those characters in field names not to work, making generated code syntactically invalid. Since the specialChars table has already been removed, we can safely stop modifying the specialCharReplacements.
- Loading branch information