René's URL Explorer Experiment


Title: fix: escape special characters in Char literals by Unisay · Pull Request #48 · purescript-lua/purescript-lua · GitHub

Open Graph Title: fix: escape special characters in Char literals by Unisay · Pull Request #48 · purescript-lua/purescript-lua

X Title: fix: escape special characters in Char literals by Unisay · Pull Request #48 · purescript-lua/purescript-lua

Description: fix: escape special characters in Char literals IR.LiteralString is escaped via decodeStringEscaping on the way in, but IR.LiteralChar was converted to a Lua string verbatim. A '\n' literal therefore landed as a raw newline inside a double-quoted Lua string, splitting it across two lines, and the chunk failed to load with unfinished string near '"'. Quote and backslash literals were affected the same way. Since this happens at parse time, a single such literal anywhere in a program makes the whole output file unloadable. Found while reviving the test suite of purescript-lua-strings, whose toCharArray tests contain a '\n'. Char literals now go through the same decodeStringEscaping as string literals. The new Golden.CharLiterals.Test golden locks this with an eval check over show of the escape-sensitive literals ('\n', '\t', '\r', '\'', '\\').

Open Graph Description: fix: escape special characters in Char literals IR.LiteralString is escaped via decodeStringEscaping on the way in, but IR.LiteralChar was converted to a Lua string verbatim. A '\n' literal...

X Description: fix: escape special characters in Char literals IR.LiteralString is escaped via decodeStringEscaping on the way in, but IR.LiteralChar was converted to a Lua string verbatim. A '\n'...

Opengraph URL: https://github.com/purescript-lua/purescript-lua/pull/48

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:5d4486a8-b564-48e5-2772-0bfaeacf382d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA46E:76F02:BF90C5:F796DA:6B00EF85
html-safe-nonceb715ab09865b96bb11e0e4246440bd372ea9629f1ae8067c64d08a8e8ee7ef41
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDZFOjc2RjAyOkJGOTBDNTpGNzk2REE6NkIwMEVGODUiLCJ2aXNpdG9yX2lkIjoiNTAzMzAzODQ1MjQ0NzMwOTcwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd110440b50d7e9a7237b9a4d41c29c079c19e8609aca3140e83b3ab5cb49a40c
hovercard-subject-tagpull_request:3859277320
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/purescript-lua/purescript-lua/pull/48/files
twitter:imagehttps://avatars.githubusercontent.com/u/1009751?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1009751?s=400&v=4
og:image:altfix: escape special characters in Char literals IR.LiteralString is escaped via decodeStringEscaping on the way in, but IR.LiteralChar was converted to a Lua string verbatim. A '\n' literal...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/purescript-lua/purescript-lua git https://github.com/purescript-lua/purescript-lua.git
octolytics-dimension-user_id131581790
octolytics-dimension-user_loginpurescript-lua
octolytics-dimension-repository_id587200487
octolytics-dimension-repository_nwopurescript-lua/purescript-lua
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id587200487
octolytics-dimension-repository_network_root_nwopurescript-lua/purescript-lua
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/purescript-lua/purescript-lua/pull/48/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpurescript-lua%2Fpurescript-lua%2Fpull%2F48%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpurescript-lua%2Fpurescript-lua%2Fpull%2F48%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=purescript-lua%2Fpurescript-lua
Reloadhttps://github.com/purescript-lua/purescript-lua/pull/48/files
Reloadhttps://github.com/purescript-lua/purescript-lua/pull/48/files
Reloadhttps://github.com/purescript-lua/purescript-lua/pull/48/files
purescript-luahttps://github.com/purescript-lua
purescript-luahttps://github.com/purescript-lua/purescript-lua
Codehttps://github.com/purescript-lua/purescript-lua
Issues48 (48)https://github.com/purescript-lua/purescript-lua/issues
Pull requestshttps://github.com/purescript-lua/purescript-lua/pulls
Discussionshttps://github.com/purescript-lua/purescript-lua/discussions
Actionshttps://github.com/purescript-lua/purescript-lua/actions
Projectshttps://github.com/purescript-lua/purescript-lua/projects
Security and qualityhttps://github.com/purescript-lua/purescript-lua/security
Insightshttps://github.com/purescript-lua/purescript-lua/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpurescript-lua%2Fpurescript-lua%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpurescript-lua%2Fpurescript-lua%2Fissues%2Fnew%2Fchoose
Unisayhttps://github.com/Unisay
mainhttps://github.com/purescript-lua/purescript-lua/tree/main
fix/char-literal-escapinghttps://github.com/purescript-lua/purescript-lua/tree/fix/char-literal-escaping
Conversation 1 https://github.com/purescript-lua/purescript-lua/pull/48
Commits 1 https://github.com/purescript-lua/purescript-lua/pull/48/commits
Checks 1 https://github.com/purescript-lua/purescript-lua/pull/48/checks
Files changed https://github.com/purescript-lua/purescript-lua/pull/48/files
Please reload this pagehttps://github.com/purescript-lua/purescript-lua/pull/48/files
fix: escape special characters in Char literals https://github.com/purescript-lua/purescript-lua/pull/48/files#top
Show all changes 1 commit https://github.com/purescript-lua/purescript-lua/pull/48/files
42cefb6 fix: escape special characters in Char literals Unisay Jun 12, 2026 https://github.com/purescript-lua/purescript-lua/pull/48/commits/42cefb6f65f7d9ddb50f75e61c9c2bd5cfae1bf4
Clear filters https://github.com/purescript-lua/purescript-lua/pull/48/files
Please reload this pagehttps://github.com/purescript-lua/purescript-lua/pull/48/files
Please reload this pagehttps://github.com/purescript-lua/purescript-lua/pull/48/files
Lua.hs https://github.com/purescript-lua/purescript-lua/pull/48/files#diff-11295f6f97401e5cc1fdfa2a8caa3fc80edc56cd58262d3de010e803f8d3640f
Test.purs https://github.com/purescript-lua/purescript-lua/pull/48/files#diff-fa861bf591504038dc904aeb9682a89127984367789cb0ba6fc6d2a51614a9ef
corefn.json https://github.com/purescript-lua/purescript-lua/pull/48/files#diff-e91c0f33dbd2317dfdb294f6124fe102d29e0e92c6798d61183030237d7d2f03
.gitignore https://github.com/purescript-lua/purescript-lua/pull/48/files#diff-0e86413ddbafa72612c3b63adc5d456c7f8d93ede7eabbf6b0e84557bfba84e2
golden.txt https://github.com/purescript-lua/purescript-lua/pull/48/files#diff-880408ca209ed2d35a3df5dce51914bf12ad0d15c761b1ac66e7f6afcf3c695e
golden.ir https://github.com/purescript-lua/purescript-lua/pull/48/files#diff-51768e0a180e8ba17b000ead8fa35bcd5743917951b324a2b821a2ffbfd4ee35
golden.lua https://github.com/purescript-lua/purescript-lua/pull/48/files#diff-33101f4068d284cd068f09a25c752d3e6d8287f96ae0b55f30ffa86fa165fa8e
lib/Language/PureScript/Backend/Lua.hshttps://github.com/purescript-lua/purescript-lua/pull/48/files#diff-11295f6f97401e5cc1fdfa2a8caa3fc80edc56cd58262d3de010e803f8d3640f
View file https://github.com/purescript-lua/purescript-lua/blob/42cefb6f65f7d9ddb50f75e61c9c2bd5cfae1bf4/lib/Language/PureScript/Backend/Lua.hs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/purescript-lua/purescript-lua/pull/48/{{ revealButtonHref }}
https://github.com/purescript-lua/purescript-lua/pull/48/files#diff-11295f6f97401e5cc1fdfa2a8caa3fc80edc56cd58262d3de010e803f8d3640f
https://github.com/purescript-lua/purescript-lua/pull/48/files#diff-11295f6f97401e5cc1fdfa2a8caa3fc80edc56cd58262d3de010e803f8d3640f
https://github.com/purescript-lua/purescript-lua/pull/48/files#diff-11295f6f97401e5cc1fdfa2a8caa3fc80edc56cd58262d3de010e803f8d3640f
https://github.com/purescript-lua/purescript-lua/pull/48/files#diff-11295f6f97401e5cc1fdfa2a8caa3fc80edc56cd58262d3de010e803f8d3640f
test/ps/golden/Golden/CharLiterals/Test.purshttps://github.com/purescript-lua/purescript-lua/pull/48/files#diff-fa861bf591504038dc904aeb9682a89127984367789cb0ba6fc6d2a51614a9ef
View file https://github.com/purescript-lua/purescript-lua/blob/42cefb6f65f7d9ddb50f75e61c9c2bd5cfae1bf4/test/ps/golden/Golden/CharLiterals/Test.purs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/purescript-lua/purescript-lua/pull/48/{{ revealButtonHref }}
test/ps/output/Golden.CharLiterals.Test/corefn.jsonhttps://github.com/purescript-lua/purescript-lua/pull/48/files#diff-e91c0f33dbd2317dfdb294f6124fe102d29e0e92c6798d61183030237d7d2f03
View file https://github.com/purescript-lua/purescript-lua/blob/42cefb6f65f7d9ddb50f75e61c9c2bd5cfae1bf4/test/ps/output/Golden.CharLiterals.Test/corefn.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/purescript-lua/purescript-lua/pull/48/{{ revealButtonHref }}
test/ps/output/Golden.CharLiterals.Test/eval/.gitignorehttps://github.com/purescript-lua/purescript-lua/pull/48/files#diff-0e86413ddbafa72612c3b63adc5d456c7f8d93ede7eabbf6b0e84557bfba84e2
View file https://github.com/purescript-lua/purescript-lua/blob/42cefb6f65f7d9ddb50f75e61c9c2bd5cfae1bf4/test/ps/output/Golden.CharLiterals.Test/eval/.gitignore
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/purescript-lua/purescript-lua/pull/48/{{ revealButtonHref }}
test/ps/output/Golden.CharLiterals.Test/eval/golden.txthttps://github.com/purescript-lua/purescript-lua/pull/48/files#diff-880408ca209ed2d35a3df5dce51914bf12ad0d15c761b1ac66e7f6afcf3c695e
View file https://github.com/purescript-lua/purescript-lua/blob/42cefb6f65f7d9ddb50f75e61c9c2bd5cfae1bf4/test/ps/output/Golden.CharLiterals.Test/eval/golden.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/purescript-lua/purescript-lua/pull/48/{{ revealButtonHref }}
Please reload this pagehttps://github.com/purescript-lua/purescript-lua/pull/48/files
Please reload this pagehttps://github.com/purescript-lua/purescript-lua/pull/48/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.