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
The definitions in Control.Monad.Combinators.Expr are the only ones that don't exist as an Alternative version. Is it possible to create those as well?
The text was updated successfully, but these errors were encountered:
It seems to me that this is a usage of >>= that can't be replicated only with Applicative, right? But requiring a constraint (Monad m, Alternative m) without MonadPlus m seems silly. So I guess it actually can't be done?
We could still try and reduce MonadPlus m usage here and there (e.g. pTerm only needs Alternative I believe), but I guess we can't get rid of it completely?
The definitions in
Control.Monad.Combinators.Expr
are the only ones that don't exist as anAlternative
version. Is it possible to create those as well?The text was updated successfully, but these errors were encountered: