-
Notifications
You must be signed in to change notification settings - Fork 2
Add the typeclass IsSendable #5
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM aside from the below things.
@JordanMartinez |
@@ -21,8 +24,24 @@ instance IsSendable Char | |||
instance IsSendable String | |||
instance IsSendable a => IsSendable (Array a) | |||
instance (RowToList r rl, IsSendableRowList rl) => IsSendable (Record r) | |||
instance IsSendable Unit | |||
instance IsSendable Void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you clarify why you added an instance for Void
? I'm not sure that's correct, but I'm not sure about that either.
@@ -21,8 +24,24 @@ instance IsSendable Char | |||
instance IsSendable String | |||
instance IsSendable a => IsSendable (Array a) | |||
instance (RowToList r rl, IsSendableRowList rl) => IsSendable (Record r) | |||
instance IsSendable Unit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is there an instance for Unit
? Can you clarify?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, this instance and the instance for Void comes from the library workerbees but I can remove them if you want.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, ok. I think I missed that.
This refers to the issue: #2
Add the typeclass IsSendable whose instances are Boolean, Int, Number, Char, String, Array, Record.
Change the signature of postMessage with
Prerequisites
purescript-web
projects. Although MDN is a great resource, it is not a suitable reference for this project.Description of the change
Clearly and concisely describe the purpose of the pull request. If this PR relates to an existing issue or change proposal, please link to it. Include any other background context that would help reviewers understand the motivation for this PR.
Checklist: