-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
[email protected] #12
Conversation
If Array is alternative String could be Alternative in the same way too. list/Array/String we could have other instance, which just does concatenation. In purescript and GHC (search I could not find implementation of alternative for Map nor in PS nor in Haskell , but If we follow use concatenation as |
ac3fce6
to
16c86f7
Compare
Thanks for the feedback, @safareli. I've updated the patch. Could you take another look?
Can it, though? String does not satisfy the requirements of Functor. |
oh, yes :d |
//. true | ||
//. | ||
//. > Alternative.test({}) | ||
//. false |
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.
I think it should be true
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.
I don't think so. We can't define fantasy-land/of
for Object, so Object can't satisfy Applicative.
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.
oh, yes, again
LGTM |
16c86f7
to
6363afb
Compare
6363afb
to
a37c784
Compare
This pull request adds
TypeClass
values for Alt, Plus, and Alternative, and functions forfantasy-land/alt
andfantasy-land/zero
, all of which were added in fantasyland/fantasy-land#197.Please review this when you have some time, @safareli. :)