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
Which leads to the question, if such a type-class would ever be useful, since such a stack could still only allow m b in shift, regardless of other monads in a stack. And therefore, if perhaps Codensity is in essence a "terminal" monad in the sense that it is practical to have it always the last in a monad stack.
The text was updated successfully, but these errors were encountered:
I was using
Codensity
for some experiments, where it can nicely capture the current continuation. So I was thinking:Could there be a meaningful
MonadCodensity
type-class?One option would be to define it with
But the problem I see is that
m
would have to be somehow bound to the type class. Something likeWhich leads to the question, if such a type-class would ever be useful, since such a stack could still only allow
m b
inshift
, regardless of other monads in a stack. And therefore, if perhapsCodensity
is in essence a "terminal" monad in the sense that it is practical to have it always the last in a monad stack.The text was updated successfully, but these errors were encountered: