At present when validation fails we return Just "xyz" and on success we return Nothing. This makes sense in the context of an error, however when using applicative/monad behaviour, we'd probably want the behaviour flipped, so an either makes more sense.
At present when validation fails we return
Just "xyz"
and on success we returnNothing
. This makes sense in the context of an error, however when using applicative/monad behaviour, we'd probably want the behaviour flipped, so an either makes more sense.