Added applyEither for validation-style combination#45
Added applyEither for validation-style combination#45reactormonk wants to merge 1 commit intopurescript:masterfrom
applyEither for validation-style combination#45Conversation
|
Thanks, but I am tempted to leave this as-is and let |
|
The use-case here is a different combination logic once. For the same code, you'd need to convert to validation and back. This would be possible, but require either |
|
newtype V err result = V (Either err result)and although the constructor isn't exported, you can freely convert back and forth with |
|
So to use this specific applicative combinator, you suggest to a) include purescript-validation b) write |
|
It is, which is why I'd like to see purescript/purescript-validation#11 happen, so that we can just do |
|
Sorry, |
|
Another thing we could do to make this more comfortable would be purescript/purescript-parallel#26 |
|
tl;dr: not possible: purescript/purescript-parallel#27 |
|
I don't want to merge this, sorry. I'm concerned that people might expect it to behave in the same way as |
Used by https://github.com/justinwoo/purescript-simple-json/pull/56/files