-
Notifications
You must be signed in to change notification settings - Fork 29
add \/ alias for either function #51
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
just like this is done for Tuple constructor in Data.Tuple.Nested https://github.com/purescript/purescript-tuples/blob/v5.1.0/src/Data/Tuple/Nested.purs#L31-L31
At first I was like "maybe let's not add more operators" but this is actually super neat, since it lets you match on nested eithers rather nicely:
I would support adding this as long as it has some documentation. 👍 |
@hdgarrood tnx, what documentation would you propose? We can add the example you just posted or example with |
What do you mean by the example with $? The one I posted works for me, although it would be good to add examples of calling it with values from each “branch” of the nested Either to better indicate what it does in case it’s not immediately clear to the reader. |
I've meant something like
but your example is better |
@hdgarrood could you add the documentation note yourself? I'm afraid I will make it wrong |
@hdgarrood I have added comment, dont know why test fails |
I think we're running into purescript-contrib/pulp#392. I've just published pulp v15.0.0 with a fix so hopefully updating will be enough here. |
Sorry for the delay. How about this for the comments:
|
…app/package.json creack/ncu -u --upgradeAll --packageFile /app/package.json"
@hdgarrood done |
Thanks! |
@hdgarrood or @hdgarrood or @natefaubion could someone merge it it's not being merged without reason for so long |
Sorry, but you don't get to set the timescales on these things. Our policy is that changes to the core libraries need to be reviewed by 2 people, and our attention is more directed towards the upcoming v0.14.0 release at the moment. |
ok, at least now I know the reason |
@srghma Could you fix the merge conflicts? I think we can merge soon after that. |
@hdgarrood done |
just like this is done for Tuple constructor in Data.Tuple.Nested
https://github.com/purescript/purescript-tuples/blob/v5.1.0/src/Data/Tuple/Nested.purs#L31-L31