{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreicbobh37ka7d22giuw6hwzfyc3mzz5e2y7fwka3cdl6t2k5e22kzy",
"uri": "at://did:plc:pi6woz4d47bkuws673w2il2r/app.bsky.feed.post/3mn6qnbepjh62"
},
"path": "/t/homomorphic-static-analysis/14146#post_13",
"publishedAt": "2026-05-31T21:34:16.000Z",
"site": "https://discourse.haskell.org",
"tags": [
"@marcosh",
"Applicative-wired monad pattern",
"Links"
],
"textContent": "Nice post. @marcosh where do you think relative monads feature in this?\n\nApplicative-wired monad pattern Links\n\n> Oh sure. Essentially a relative monad in Haskell is a type constructor with the following operations: -- f is a functor, but not necessarily an endofunctor class Relative f g where rPure :: g a -> f a rBind :: (g a -> f b) -> f a -> f b with some laws (which are essentially the same as those for regular monads): rBind rPure = id -- left unit rBind f . rPure = f -- right unit rBind f . rBind g = rBind (rBind f . g) -- associativity Every monad is a relative monad if you pick g to be Ident…",
"title": "Homomorphic static analysis"
}