Title: Represent typeclasses as data constructors in functional core · Issue #781 · purescript/purescript · GitHub
Open Graph Title: Represent typeclasses as data constructors in functional core · Issue #781 · purescript/purescript
X Title: Represent typeclasses as data constructors in functional core · Issue #781 · purescript/purescript
Description: Currently during desugaring "class constructor functions" are created, instead we should reuse Constructor for this, and then use pattern matches to extract fields from the constructed typeclass dictionaries rather than assuming the type...
Open Graph Description: Currently during desugaring "class constructor functions" are created, instead we should reuse Constructor for this, and then use pattern matches to extract fields from the constructed typeclass di...
X Description: Currently during desugaring "class constructor functions" are created, instead we should reuse Constructor for this, and then use pattern matches to extract fields from the constructed ty...
Opengraph URL: https://github.com/purescript/purescript/issues/781
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Represent typeclasses as data constructors in functional core","articleBody":"Currently during desugaring \"class constructor functions\" are created, instead we should reuse `Constructor` for this, and then use pattern matches to extract fields from the constructed typeclass dictionaries rather than assuming the typeclass dictionary is always a record.\n\nThis will remove the current strong tie between desugaring and codegen, and remove all special cases that are currently present for typeclass dictionary values.\n\nTo do this, we'll also want to be able to specify the names of fields within a `Constructor` for preserving readability in the generated code.\n","author":{"url":"https://github.com/garyb","@type":"Person","name":"garyb"},"datePublished":"2014-12-24T01:27:34Z","url":"https://github.com/purescript/purescript/issues/781"}
| 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:1bb61105-e06b-7a11-fac4-eca920c99dcc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8040:65478:3B09FB:5057CA:6B00C7E9 |
| html-safe-nonce | 0778044fd8af36866d5bff8ec19fff2c14396cfd8524d3fd0dd49f1d47e18af4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDQwOjY1NDc4OjNCMDlGQjo1MDU3Q0E6NkIwMEM3RTkiLCJ2aXNpdG9yX2lkIjoiNzM3MjI3NDkzOTc2MTU3NTkxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ee4d82d6e20272f08d01994d3c88bed4cede651581afb805ed33852b16843e62 |
| hovercard-subject-tag | issue:52788831 |
| 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/781/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d6b3eed339849513a87a8a78a8b37c27a9633376e6936d983621074c62860864/purescript/purescript/issues/781 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d6b3eed339849513a87a8a78a8b37c27a9633376e6936d983621074c62860864/purescript/purescript/issues/781 |
| og:image:alt | Currently during desugaring "class constructor functions" are created, instead we should reuse Constructor for this, and then use pattern matches to extract fields from the constructed typeclass di... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | garyb |
| hostname | github.com |
| expected-hostname | github.com |
| None | 98dc00e171c204462a6f367482a0f8c3c6b5dbca99cd7390e82d2df49ce096e4 |
| 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 | ef013399cf0a3c324bea644a685d7c1e0f06b5b7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width