-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Applicative/Functor instance missing for OptionT #1107
Comments
This is absolutely the case because a monad transfromer is not the same as a See explanation here #1106. |
It would still be possible to add something like I was wondering if we should add some sort of def foldLeft[B](b: B)(f: (B, A) => B)(implicit F: Foldable[F]): B =
toNested.foldLeft(value, b)(f)
// F.foldLeft(value, b)((b, o) => optionInstance.foldLeft(o, b)(f)) |
@peterneyens I like your idea of |
|
Missing for when F doesn't have a Monad
The text was updated successfully, but these errors were encountered: