Title: prelude: `show` on a String returns it unquoted and unescaped · Issue #50 · purescript-lua/purescript-lua · GitHub
Open Graph Title: prelude: `show` on a String returns it unquoted and unescaped · Issue #50 · purescript-lua/purescript-lua
X Title: prelude: `show` on a String returns it unquoted and unescaped · Issue #50 · purescript-lua/purescript-lua
Description: purescript-lua-prelude issues are disabled, so filing here. showStringImpl in src/Data/Show.lua is the identity: showStringImpl = (function(s) return s end), So show "hi" is hi, not "hi", and show "a\nb" prints a literal newline. The ups...
Open Graph Description: purescript-lua-prelude issues are disabled, so filing here. showStringImpl in src/Data/Show.lua is the identity: showStringImpl = (function(s) return s end), So show "hi" is hi, not "hi", and show ...
X Description: purescript-lua-prelude issues are disabled, so filing here. showStringImpl in src/Data/Show.lua is the identity: showStringImpl = (function(s) return s end), So show "hi" is hi, not "...
Opengraph URL: https://github.com/purescript-lua/purescript-lua/issues/50
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"prelude: `show` on a String returns it unquoted and unescaped","articleBody":"`purescript-lua-prelude` issues are disabled, so filing here.\n\n`showStringImpl` in `src/Data/Show.lua` is the identity:\n\n```lua\nshowStringImpl = (function(s) return s end),\n```\n\nSo `show \"hi\"` is `hi`, not `\"hi\"`, and `show \"a\\nb\"` prints a literal newline. The upstream JS implementation wraps the string in quotes and escapes control characters, quotes and backslashes — `show` is meant to round-trip back to a PureScript literal. Anything that shows a record or a data type containing a String (debug output, `Show` instances derived via Generic, test failure messages) comes out wrong.\n\nThis has wide blast radius on goldens, so a fix in the prelude fork will need a package-set release and golden refresh in pslua. Mirror the upstream escaping (`prettyPrintStringJS` in pslua's `PSString.hs` is the same logic and could guide the Lua side).\n","author":{"url":"https://github.com/Unisay","@type":"Person","name":"Unisay"},"datePublished":"2026-06-13T07:14:01Z","url":"https://github.com/purescript-lua/purescript-lua/issues/50"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:831f72fe-7add-95b1-4b52-b964ebc693b5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB5C:B53AF:8DD727:BE8D4C:6B00E451 |
| html-safe-nonce | cc8644887aa674d90e5763da7d0cfe5145a5529171d6216a475791e82fa53110 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjVDOkI1M0FGOjhERDcyNzpCRThENEM6NkIwMEU0NTEiLCJ2aXNpdG9yX2lkIjoiMTQwNTk1ODE2MDMyMTE0Mzg4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 166dafd1a372826be932d2aa81a637edb6f2ddceb6b774e8c7a572e3292db97d |
| hovercard-subject-tag | issue:4654707743 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/purescript-lua/purescript-lua/50/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c79b4a5a4430d3de7c6e52ac79b1007a1bde10993696182d191c370bcd4dcebe/purescript-lua/purescript-lua/issues/50 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c79b4a5a4430d3de7c6e52ac79b1007a1bde10993696182d191c370bcd4dcebe/purescript-lua/purescript-lua/issues/50 |
| og:image:alt | purescript-lua-prelude issues are disabled, so filing here. showStringImpl in src/Data/Show.lua is the identity: showStringImpl = (function(s) return s end), So show "hi" is hi, not "hi", and show ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Unisay |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14 |
| turbo-cache-control | no-preview |
| go-import | github.com/purescript-lua/purescript-lua git https://github.com/purescript-lua/purescript-lua.git |
| octolytics-dimension-user_id | 131581790 |
| octolytics-dimension-user_login | purescript-lua |
| octolytics-dimension-repository_id | 587200487 |
| octolytics-dimension-repository_nwo | purescript-lua/purescript-lua |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 587200487 |
| octolytics-dimension-repository_network_root_nwo | purescript-lua/purescript-lua |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 624179fb8b88d26ba5bba08894eb60a1c5a1d93d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width