Title: [fork-ffi] console: warn — Upstream maps `warn :: String -> Effect Unit` to `console.warn`,… · Issue #77 · purescript-lua/purescript-lua · GitHub
Open Graph Title: [fork-ffi] console: warn — Upstream maps `warn :: String -> Effect Unit` to `console.warn`,… · Issue #77 · purescript-lua/purescript-lua
X Title: [fork-ffi] console: warn — Upstream maps `warn :: String -> Effect Unit` to `console.warn`,… · Issue #77 · purescript-lua/purescript-lua
Description: Package: purescript-lua-console File: src/Effect/Console.lua Function: warn Class: semantics Severity: low Upstream maps warn :: String -> Effect Unit to console.warn, which writes to stderr in Node. The Lua FFI uses print (stdout), so w...
Open Graph Description: Package: purescript-lua-console File: src/Effect/Console.lua Function: warn Class: semantics Severity: low Upstream maps warn :: String -> Effect Unit to console.warn, which writes to stderr in Nod...
X Description: Package: purescript-lua-console File: src/Effect/Console.lua Function: warn Class: semantics Severity: low Upstream maps warn :: String -> Effect Unit to console.warn, which writes to stderr in ...
Opengraph URL: https://github.com/purescript-lua/purescript-lua/issues/77
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[fork-ffi] console: warn — Upstream maps `warn :: String -> Effect Unit` to `console.warn`,…","articleBody":"**Package:** purescript-lua-console \n**File:** `src/Effect/Console.lua` \n**Function:** `warn` \n**Class:** semantics **Severity:** low\n\nUpstream maps `warn :: String -> Effect Unit` to `console.warn`, which writes to stderr in Node. The Lua FFI uses `print` (stdout), so warnings are indistinguishable from `log` output and cannot be filtered via stderr. (By contrast `info`/`debug`/`log` -> stdout is correct, since console.info/console.debug/console.log all target stdout, so only warn and error are misrouted.)\n\n**Current (Lua):**\n```lua\nwarn = (function(s) return function() print(s) end end),\n```\n\n**Expected:** console.warn writes to stderr; the Lua equivalent is io.stderr:write(s .. \"\\n\").\n\n**Proposed fix:**\n```lua\nwarn = (function(s) return function() io.stderr:write(tostring(s) .. \"\\n\") end end),\n```\n\n_Found by the FFI audit; reproduced under Lua 5.1._","author":{"url":"https://github.com/Unisay","@type":"Person","name":"Unisay"},"datePublished":"2026-06-15T11:23:56Z","url":"https://github.com/purescript-lua/purescript-lua/issues/77"}
| 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:4d72f877-2f38-5940-c45a-ce4b20a65a5a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A38:317608:4379A2:5717C0:6B00D53B |
| html-safe-nonce | 175cbc7d319d90fff6595b4c9d58655da2e3b6786298cbc665b7fa44f9bf60b4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTM4OjMxNzYwODo0Mzc5QTI6NTcxN0MwOjZCMDBENTNCIiwidmlzaXRvcl9pZCI6IjgyMjQ0MzA3OTgxNDE0NDU0MzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 27f21efced4127a3419da4a611223d7a932bfb117ba44118776c579fb596b443 |
| hovercard-subject-tag | issue:4664606717 |
| 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/77/issue_layout |
| twitter:image | https://opengraph.githubassets.com/aced2dceb99545aebbc63b2d1f5c189a50770b1842bdf8ec3bfca8be5871d353/purescript-lua/purescript-lua/issues/77 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/aced2dceb99545aebbc63b2d1f5c189a50770b1842bdf8ec3bfca8be5871d353/purescript-lua/purescript-lua/issues/77 |
| og:image:alt | Package: purescript-lua-console File: src/Effect/Console.lua Function: warn Class: semantics Severity: low Upstream maps warn :: String -> Effect Unit to console.warn, which writes to stderr in Nod... |
| 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 | a481f62a1e04c9b9bdcb5628230682c66d59006f5b13b080f79cba84a176905b |
| 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 | 84c8c5cc25e2fb7f2308428458538436baecc6d2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width