You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per gitter comment, consider some mechanism for composing multiple, serialized Validated transformations without having to go back and forth between Xor to get flatMap.
The text was updated successfully, but these errors were encountered:
To add a little more detail after a follow-up Gitter conversation. It sounds like the consensus is to add a new method to Validated that has the same signature as flatMap but with a different name, since it will not actually be a monadic bind (since it won't be consistent with ap).
As is often the case, naming is the hardest part. @metasim suggested andThen, which is perhaps a bit overloaded, but I've thought for a while and can't come up with a better name, so I'd be happy with that.
ceedubs
added a commit
to ceedubs/cats
that referenced
this issue
Nov 7, 2015
Fixestypelevel#604.
This is essentially `flatMap` for `Validated`, but since `flatMap`
suggests monadic bind in Cats and this is not consistent with `ap`,
another name is being used.
Per gitter comment, consider some mechanism for composing multiple, serialized
Validated
transformations without having to go back and forth betweenXor
to getflatMap
.The text was updated successfully, but these errors were encountered: