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

Should Nullable also be an instance of IsJSVal and PToJSVal? #90

Open
louispan opened this issue Mar 12, 2017 · 1 comment
Open

Should Nullable also be an instance of IsJSVal and PToJSVal? #90

louispan opened this issue Mar 12, 2017 · 1 comment

Comments

@louispan
Copy link
Contributor

No description provided.

@louispan
Copy link
Contributor Author

At least if it's an instance of IsJSVal, then I can have easily (without pattern matching) the the jsval of
nullableJO :: Maybe JavaScript.Object -> JSVal
nullableJO obj = jsval (maybeToNullable obj)

I can't use pToJsVal directly because JavaScript.Object is not an instance of PToJSVal, but it's an IsJSVal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant