{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreidfzz6uq4kcndbuq3dqop4re6fi2eldbaere75b6km33erlc23vlm",
"uri": "at://did:plc:pi6woz4d47bkuws673w2il2r/app.bsky.feed.post/3mjkhmsuugns2"
},
"path": "/t/factoring-through-objects-subtyping-unit-void-product-sum/13936#post_1",
"publishedAt": "2026-04-15T17:50:22.000Z",
"site": "https://discourse.haskell.org",
"tags": [
"https://muratkasimov.art/Ya/Articles/Factoring-through-objects/"
],
"textContent": "This is an article I wanted to write for some time, it’s mostly a showcase of using the idea of “factoring through” from abstract algebra with examples. It’s useful for turning regular functions into constants and coconstants, implementing case splitting and building tuples.\n\nhttps://muratkasimov.art/Ya/Articles/Factoring-through-objects/",
"title": "Factoring through objects: subtyping, Unit, Void, Product, Sum"
}