Simple form validation using Arrow
Using this data type we can't know which field is wrong.
Using this data type we know which field is wrong, but when both are wrong we get just the first error.
Using this data type we are accumulating all errors in a NotEmptyList so we get all of them. But we are still not showing them in the proper UI.
Using this data type we are accumulating all errors in a NotEmptyList so we get all of them. Using a sealed class instead just a string allows us to understand exactly which field is wrong and we can show errors in right TextInputLayout