@aspiwack.bsky.socialArnaud Spiwack @aspiwack.bsky.social
2026-11-30 06:30 UTC
A PSA. The type of monadic bind can be generalised to (>>=) :: M-Alg b => m a -> (a -> b) -> b When some notion of M-algebra is available (e.g. this is foldMap on lists, concatMap, the usual bind, is an instance). There may be performance implications.
6 likes, 1 reposts, 0 replies
3 Next post4 More from @aspiwack.bsky.socialBackBluesky home