Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: improve ergonomics of identity checks #26

Open
getify opened this issue Apr 25, 2022 · 0 comments
Open

Feature: improve ergonomics of identity checks #26

getify opened this issue Apr 25, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@getify
Copy link
Owner

getify commented Apr 25, 2022

In addition to things like IO.is(x) to determine if x is an IO monad instance, we can add Symbol.hasInstance to all the monad definitions so that a more ergonomic x isntanceof IO check will work properly.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/hasInstance

@getify getify added the enhancement New feature or request label Apr 25, 2022
@getify getify self-assigned this Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant