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
I think that OptionT is a bit different than XorT in this context. If you filter out an item from an Option then you can naturally return None. What do you return in the case of Xor/XorT for an empty value? Xor used to require a Monoid instance for the left type and use the empty value from that Monoid, but it was removed in #276 as it was pretty ad-hoc and arbitrary. For example what should the following return?
This will allow to use if statements in for-comprehensions. See similar issue for OptionT: #981
The text was updated successfully, but these errors were encountered: