Title: Rewrite rules · Issue #660 · purescript/purescript · GitHub
Open Graph Title: Rewrite rules · Issue #660 · purescript/purescript
X Title: Rewrite rules · Issue #660 · purescript/purescript
Description: A slightly different idea for how to implement rewrite rules, which would be more flexible: Provide a PureScript library which contains a type for the core AST, and some simple functions for generic traversals in the style of syb. Develo...
Open Graph Description: A slightly different idea for how to implement rewrite rules, which would be more flexible: Provide a PureScript library which contains a type for the core AST, and some simple functions for generi...
X Description: A slightly different idea for how to implement rewrite rules, which would be more flexible: Provide a PureScript library which contains a type for the core AST, and some simple functions for generi...
Opengraph URL: https://github.com/purescript/purescript/issues/660
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Rewrite rules","articleBody":"A slightly different idea for how to implement rewrite rules, which would be more flexible:\n- Provide a PureScript library which contains a type for the core AST, and some simple functions for generic traversals in the style of `syb`.\n- Developers have the option of including a `.rewrites.purs` file for each module, which contains a top level value `rewrites :: [Tuple Priority (AST -> AST)]`, which is compiled and interpreted using Node during compilation.\n- `psc` is responsible for interacting with the Node process, and passing the core AST back and forth during optimization.\n\nThis way, we don't need any special syntax for rewrites in the source code itself. We could even support the optimizations for `runST`!\n","author":{"url":"https://github.com/paf31","@type":"Person","name":"paf31"},"datePublished":"2014-10-30T16:36:44Z","url":"https://github.com/purescript/purescript/issues/660"}
| 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:31c9a4c3-8773-75ba-a402-f6c88bf0a189 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E94:2F4BD9:C6E55E:107F79B:6B00F39D |
| html-safe-nonce | ef936fa42469140294df951f1edbc92fc59929390d35ab8066d675ce2fd420c6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTk0OjJGNEJEOTpDNkU1NUU6MTA3Rjc5Qjo2QjAwRjM5RCIsInZpc2l0b3JfaWQiOiI3MDY2NTY1ODQ2MzA2NDUyMzgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b7a0d9c23dee332918e73fc69f17a3e69cb8f9fe0e66dae81678f50d6bd791ba |
| hovercard-subject-tag | issue:47293617 |
| 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/purescript/660/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0a049e21b9ffe172188f7defb40e8d5129194a3e5cf9f608d2de48e2bb3f84a7/purescript/purescript/issues/660 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0a049e21b9ffe172188f7defb40e8d5129194a3e5cf9f608d2de48e2bb3f84a7/purescript/purescript/issues/660 |
| og:image:alt | A slightly different idea for how to implement rewrite rules, which would be more flexible: Provide a PureScript library which contains a type for the core AST, and some simple functions for generi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | paf31 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| turbo-cache-control | no-preview |
| go-import | github.com/purescript/purescript git https://github.com/purescript/purescript.git |
| octolytics-dimension-user_id | 6556677 |
| octolytics-dimension-user_login | purescript |
| octolytics-dimension-repository_id | 13206906 |
| octolytics-dimension-repository_nwo | purescript/purescript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13206906 |
| octolytics-dimension-repository_network_root_nwo | purescript/purescript |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width