René's URL Explorer Experiment


Title: Support Higher Kinded Types · Issue #408 · dry-python/returns · GitHub

Open Graph Title: Support Higher Kinded Types · Issue #408 · dry-python/returns

X Title: Support Higher Kinded Types · Issue #408 · dry-python/returns

Description: This feature is crutial before 1.0 release. Currently, our interfaces are not universal. Many functions and methods do require to explicitly annotate all containers that they can work with. As a result users cannot create their own conta...

Open Graph Description: This feature is crutial before 1.0 release. Currently, our interfaces are not universal. Many functions and methods do require to explicitly annotate all containers that they can work with. As a re...

X Description: This feature is crutial before 1.0 release. Currently, our interfaces are not universal. Many functions and methods do require to explicitly annotate all containers that they can work with. As a re...

Opengraph URL: https://github.com/dry-python/returns/issues/408

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support Higher Kinded Types","articleBody":"This feature is crutial before `1.0` release.\r\n\r\nCurrently, our interfaces are not universal. Many functions and methods do require to explicitly annotate all containers that they can work with. As a result users cannot create their own containers. \r\n\r\nAnd we struggle to build useful abstractions (like `MonadIO` on top of `IO` and `Future`, see https://github.com/gcanti/fp-ts/blob/master/src/MonadIO.ts). Let's see this example: https://returns.readthedocs.io/en/latest/pages/context.html#requirescontextfutureresult-container\r\n\r\nIt can possibly work with both `IO` and `Future` containers. In the first case, it would be sync. But, in the second one it would be async. And the source code won't be changed at all! We would only need to substitute our monad stack. \r\n\r\n```python\r\ndef _fetch_post(\r\n      post_id: int,\r\n      client_get: Callable[[str], MonadIO[Response]],\r\n  ) -> MonadIO[_Post]:\r\n      return client_get(_URL.format(post_id)).bind_result(\r\n          safe(tap(httpx.Response.raise_for_status)),\r\n      ).map(\r\n          lambda response: response.json(),\r\n      )\r\n```\r\n\r\nPassing `IOResult` will run this code in sync, while `FutureResult` will run like real `async` code.\r\n\r\nTo make this happen, we need HKT!\r\nI have spent a lot of time working on the initial implementation, but still no luck.\r\n\r\nRelated:\r\n- Lightweight higher-kinded polymorphism: https://www.cl.cam.ac.uk/~jdy22/papers/lightweight-higher-kinded-polymorphism.pdf\r\n- Swift: https://bow-swift.io/docs/fp-concepts/higher-kinded-types/\r\n- TypeScript: https://github.com/gcanti/fp-ts/blob/master/docs/guides/HKT.md\r\n\r\nNative blockers:\r\n\r\n- https://github.com/python/typing/issues/548\r\n- https://github.com/python/mypy/issues/8848","author":{"url":"https://github.com/sobolevn","@type":"Person","name":"sobolevn"},"datePublished":"2020-06-07T10:49:05Z","url":"https://github.com/dry-python/returns/issues/408"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e1f9a5ca-f1ed-010f-0e6d-4e8a74d7b67b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD238:3AC034:B724C4:F695F0:6B004DD4
html-safe-nonce18df0eb74c6817a823a0361253960b4c145d4243e5dc63dfc55096c26f23c899
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjM4OjNBQzAzNDpCNzI0QzQ6RjY5NUYwOjZCMDA0REQ0IiwidmlzaXRvcl9pZCI6IjIyNzE1OTAxOTE1NTY3NDI2MTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace39119270ee909fb794609e27916eea8f76d706890e0f1cdd167f8a0baa8e773
hovercard-subject-tagissue:633295571
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/dry-python/returns/408/issue_layout
twitter:imagehttps://opengraph.githubassets.com/631ef638f153355d0b9c215a7fed8cb853b0ed65987e1bc30ee63d7925e69099/dry-python/returns/issues/408
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/631ef638f153355d0b9c215a7fed8cb853b0ed65987e1bc30ee63d7925e69099/dry-python/returns/issues/408
og:image:altThis feature is crutial before 1.0 release. Currently, our interfaces are not universal. Many functions and methods do require to explicitly annotate all containers that they can work with. As a re...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesobolevn
hostnamegithub.com
expected-hostnamegithub.com
Nonef9517bf360d46638a1e5e7daee7158842fe5ef43c9000afa0e127564a7c2f39b
turbo-cache-controlno-preview
go-importgithub.com/dry-python/returns git https://github.com/dry-python/returns.git
octolytics-dimension-user_id37993755
octolytics-dimension-user_logindry-python
octolytics-dimension-repository_id167689891
octolytics-dimension-repository_nwodry-python/returns
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id167689891
octolytics-dimension-repository_network_root_nwodry-python/returns
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb27c5dde30676028abd5c5fc53ce5c9b625f8281
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/dry-python/returns/issues/408#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdry-python%2Freturns%2Fissues%2F408
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%2Fdry-python%2Freturns%2Fissues%2F408
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=dry-python%2Freturns
Reloadhttps://github.com/dry-python/returns/issues/408
Reloadhttps://github.com/dry-python/returns/issues/408
Reloadhttps://github.com/dry-python/returns/issues/408
dry-pythonhttps://github.com/dry-python
returnshttps://github.com/dry-python/returns
Codehttps://github.com/dry-python/returns
Issues66 (66)https://github.com/dry-python/returns/issues
Pull requests11 (11)https://github.com/dry-python/returns/pulls
Actionshttps://github.com/dry-python/returns/actions
Security and qualityhttps://github.com/dry-python/returns/security
Insightshttps://github.com/dry-python/returns/insights
https://github.com/dry-python/returns
New issuehttps://github.com/login?return_to=https://github.com/dry-python/returns/issues/408
New issuehttps://github.com/login?return_to=https://github.com/dry-python/returns/issues/408
Support Higher Kinded Typeshttps://github.com/dry-python/returns/issues/408#top
enhancementNew feature or requesthttps://github.com/dry-python/returns/issues?q=state%3Aopen%20label%3A%22enhancement%22
help wantedExtra attention is neededhttps://github.com/dry-python/returns/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
on Jun 7, 2020https://github.com/dry-python/returns/issues/408#issue-633295571
https://github.com/gcanti/fp-ts/blob/master/src/MonadIO.tshttps://github.com/gcanti/fp-ts/blob/master/src/MonadIO.ts
https://returns.readthedocs.io/en/latest/pages/context.html#requirescontextfutureresult-containerhttps://returns.readthedocs.io/en/latest/pages/context.html#requirescontextfutureresult-container
https://www.cl.cam.ac.uk/~jdy22/papers/lightweight-higher-kinded-polymorphism.pdfhttps://www.cl.cam.ac.uk/~jdy22/papers/lightweight-higher-kinded-polymorphism.pdf
https://bow-swift.io/docs/fp-concepts/higher-kinded-types/https://bow-swift.io/docs/fp-concepts/higher-kinded-types/
https://github.com/gcanti/fp-ts/blob/master/docs/guides/HKT.mdhttps://github.com/gcanti/fp-ts/blob/master/docs/guides/HKT.md
Higher-Kinded TypeVars python/typing#548https://github.com/python/typing/issues/548
Feature request: plugins that have access to both semanal and typechecker APIs python/mypy#8848https://github.com/python/mypy/issues/8848
sobolevnhttps://github.com/sobolevn
enhancementNew feature or requesthttps://github.com/dry-python/returns/issues?q=state%3Aopen%20label%3A%22enhancement%22
help wantedExtra attention is neededhttps://github.com/dry-python/returns/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
on Jun 7, 2020https://github.com/dry-python/returns/issues/408#event-3416277775
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
on Jun 18, 2020https://github.com/dry-python/returns/issues/408#issuecomment-645986109
https://dev.to/gcanti/functional-design-tagless-final-332khttps://dev.to/gcanti/functional-design-tagless-final-332k
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
on Jun 18, 2020https://github.com/dry-python/returns/issues/408#issuecomment-645986734
python/mypy#9001https://github.com/python/mypy/issues/9001
https://github.com/antonagestam
antonagestamhttps://github.com/antonagestam
on Aug 17, 2020https://github.com/dry-python/returns/issues/408#issuecomment-674804596
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
on Aug 17, 2020https://github.com/dry-python/returns/issues/408#issuecomment-674820059
@antonagestamhttps://github.com/antonagestam
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
on Aug 17, 2020https://github.com/dry-python/returns/issues/408#issuecomment-674820656
https://github.com/antonagestam/phantom-typeshttps://github.com/antonagestam/phantom-types
https://github.com/antonagestam
antonagestamhttps://github.com/antonagestam
on Aug 17, 2020https://github.com/dry-python/returns/issues/408#issuecomment-674912173
@sobolevnhttps://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
completedhttps://github.com/dry-python/returns/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 25, 2020https://github.com/dry-python/returns/issues/408#event-3808041268
Sign up for freehttps://github.com/signup?return_to=https://github.com/dry-python/returns/issues/408
Sign in to commenthttps://github.com/login?return_to=https://github.com/dry-python/returns/issues/408
enhancementNew feature or requesthttps://github.com/dry-python/returns/issues?q=state%3Aopen%20label%3A%22enhancement%22
help wantedExtra attention is neededhttps://github.com/dry-python/returns/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
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.