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
Hey, I noticed #114 added Monoid constraints to a lot of functions. I don't understand why. Isn't the error type in Form error m value supposed to be for one error? The example check "Cannot be empty" (not . null) sure hints that, too. In that case, it makes no sense for the error type to have an identity element or even the Semigroup's combining. The errors function already returns a list, further hinting Monoid is redundant.
Thanks!
The text was updated successfully, but these errors were encountered:
Hey, I noticed #114 added Monoid constraints to a lot of functions. I don't understand why. Isn't the error type in
Form error m value
supposed to be for one error? The examplecheck "Cannot be empty" (not . null)
sure hints that, too. In that case, it makes no sense for the error type to have an identity element or even the Semigroup's combining. Theerrors
function already returns a list, further hinting Monoid is redundant.Thanks!
The text was updated successfully, but these errors were encountered: