Title: Operator sections with identical types type-check differently · Issue #862 · purescript/purescript · GitHub
Open Graph Title: Operator sections with identical types type-check differently · Issue #862 · purescript/purescript
X Title: Operator sections with identical types type-check differently · Issue #862 · purescript/purescript
Description: According to the REPL the type of both (+1) and (1+) are Number->Number. The expression ((1+) <$> (1+)) 1 checks out but ((+1) <$> (+1)) 1 does not. EDIT: I just realized I'm an idiot because let x = (+1) y = (+1) (x <$> y) 1 works. So t...
Open Graph Description: According to the REPL the type of both (+1) and (1+) are Number->Number. The expression ((1+) <$> (1+)) 1 checks out but ((+1) <$> (+1)) 1 does not. EDIT: I just realized I'm an idiot because let x...
X Description: According to the REPL the type of both (+1) and (1+) are Number->Number. The expression ((1+) <$> (1+)) 1 checks out but ((+1) <$> (+1)) 1 does not. EDIT: I just realized I'm an ...
Opengraph URL: https://github.com/purescript/purescript/issues/862
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Operator sections with identical types type-check differently","articleBody":"According to the REPL the type of both `(+1)` and `(1+)` are `Number->Number`.\nThe expression `((1+) \u003c$> (1+)) 1` checks out but `((+1) \u003c$> (+1)) 1` does not.\n\nEDIT: I just realized I'm an idiot because\n\n```\nlet x = (+1)\n y = (+1)\n(x \u003c$> y) 1\n```\n\nworks.\nSo this is some parsing bug, I think.\nOr it's not correctly inferring the Functor instance for (+1)\n","author":{"url":"https://github.com/badly-drawn-wizards","@type":"Person","name":"badly-drawn-wizards"},"datePublished":"2015-02-11T09:32:43Z","url":"https://github.com/purescript/purescript/issues/862"}
| 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:f5b4fc59-3371-93c8-615e-d542a25b1196 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A42A:1F7384:A9B522:E1EFC8:6B00EB86 |
| html-safe-nonce | 105dcfb99629a4094ef020cc470cafe71c98ebd33ff67bb4876b5e3f7f8ff789 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDJBOjFGNzM4NDpBOUI1MjI6RTFFRkM4OjZCMDBFQjg2IiwidmlzaXRvcl9pZCI6IjEwMzMzMDk0MDczOTc2MDQyMzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 70d82ecfe68ffbce94e1b33066c0c5eeb16786428757b8e7ad15406a8f5113cf |
| hovercard-subject-tag | issue:57293272 |
| 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/862/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e91e992d3bc643229e1779e2382c1ec38c182a4c1911921cfa0b580a92435a62/purescript/purescript/issues/862 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e91e992d3bc643229e1779e2382c1ec38c182a4c1911921cfa0b580a92435a62/purescript/purescript/issues/862 |
| og:image:alt | According to the REPL the type of both (+1) and (1+) are Number->Number. The expression ((1+) <$> (1+)) 1 checks out but ((+1) <$> (+1)) 1 does not. EDIT: I just realized I'm an idiot because let x... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | badly-drawn-wizards |
| 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