Closed symbiont-oskar-wickstrom closed 5 years ago
I think this is the use-case for what we used to have in the library, ValidationT
, but can be done with ExceptT
.
All right. Yeah, if there's a lot of these in sequence then using ExceptT
makes sense. I only have a single bindValidationA
, so it feels a bit heavy-weight in my case. Maybe I can find another way around it. I'll close this ticket.
Hey, thanks for the awesome library! I ran into a case where I wanted a monadic action on the right-hand side of
bindValidation
. I've written my own definitionbindValidationA
, as it could just as well beApplicative
:Is this something you'd like added to the library? We could rewrite
bindValidation
usingIdentity
with it, if desired. I can submit a PR. Thanks!