{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreiahveohwmtbeqxtnschiurhhnkmvw2cpby4ylkk5yklapbmt4v7xu",
    "uri": "at://did:plc:pi6woz4d47bkuws673w2il2r/app.bsky.feed.post/3mlegsvcrigh2"
  },
  "path": "/t/category-transformers/14054#post_5",
  "publishedAt": "2026-05-08T17:36:42.000Z",
  "site": "https://discourse.haskell.org",
  "textContent": "olf:\n\n> Should we stop using monads?\n\nCounter-counterpoint: why are monad cakes even viewed as a good foundation?\n\nThe example in this article could be naively written as\n\n\n    isEnvGreaterThanInput :: Handle -> Int -> IO (Maybe Bool)\n    isEnvGreaterThanInput handle env = do\n      input <- hGetLine handle\n      case readMaybe input of\n        Nothing -> pure Nothing\n        Just n  -> pure $ Just (env > n)\n\n\nIt’s shorter than the other two versions, it doesn’t do magic (can’t read from a `Handle` if it was never passed to you), and it trivially composes with any other plain `IO` function.",
  "title": "Category transformers"
}