Skip to content

Added left and right.#7

Closed
pseudonom wants to merge 1 commit intopurescript:masterfrom
pseudonom:master
Closed

Added left and right.#7
pseudonom wants to merge 1 commit intopurescript:masterfrom
pseudonom:master

Conversation

@pseudonom
Copy link
Contributor

No description provided.

@paf31
Copy link
Contributor

paf31 commented Mar 19, 2015

I'm not sure I see so much value in these honestly. They're easily defined with either, and their names clash with profunctors.

@garyb
Copy link
Member

garyb commented Mar 19, 2015

I'm of similar mind, you'd probably end up using fromMaybe or maybe with them anyway, so may as well just go straight to either.

@pseudonom
Copy link
Contributor Author

not sure I see so much value in these honestly. They're easily defined with either

Yeah, they're certainly not essential.

using fromMaybe or maybe

I end up using them for monadic chaining with Maybe (e.g. combining errors that report their reason for failure and those that don't):

foo :: c -> Either a b
bar :: [c] -> Maybe b
bar = right <<< foo <=< head

@garyb
Copy link
Member

garyb commented Jul 3, 2015

Closing this as I think we're not merging it. Thanks though!

@garyb garyb closed this Jul 3, 2015
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

Successfully merging this pull request may close these issues.

3 participants