I'm trying to grok applicative forms, and I've been wondering how to implement a form that validates fields that depend on other fields. For example a registration form which has password
and confirm_password
fields and I'd like to validate that password == confirm_password
.
I could be done after the form has ran, in the handler, but that would mean losing error messages.
Edit: Forgot to mention, I'm mainly using Yesods applicative forms, but they seem to be quite close to digestive-functors