|
|
|
|
|
by Twisol
1869 days ago
|
|
> What about this? Is this even possible? > (T a -> b) -> T a -> T b Yep; that's the signature for the "extend" method of a comonad. https://hackage.haskell.org/package/comonad-5.0.8/docs/Contr... Though I prefer the presentation with `duplicate :: w a -> w (w a)`, which is just the signature of Monad's `join` but flipped around. |
|
That’s just a normal function application followed by return.