{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreieaw425jpumsec222gkfrpgd6zdcewcaidp4rs5fhhrar774esujm",
    "uri": "at://did:plc:pi6woz4d47bkuws673w2il2r/app.bsky.feed.post/3mnikmhdigei2"
  },
  "path": "/t/is-there-a-way-to-get-a-oschar-literal-more-conveniently-than-osp-head/14206#post_3",
  "publishedAt": "2026-06-04T19:33:09.000Z",
  "site": "https://discourse.haskell.org",
  "textContent": "unsafeFromChar isn’t equivalent to osp + head, if i give it a invalid literal i will get a compile time error, unsafeFromChar will just fail silently as it truncates the bytes. I guess if i give osp the empty string then it also fails at runtime but it atleast will raise an exception",
  "title": "Is there a way to get a OsChar literal more conveniently than osp + head"
}