Pprintast.Doc(3)

πŸ’… NAME πŸ’…

okay so this is Pprintast.Doc(3) from the OCaml library, and its whole NAME situation is Pprintast.Doc β€” literally Format_doc functions for error messages ✨ periodt.


πŸŽ€ Module πŸŽ€

Module Pprintast.Doc β€” that's the main character right there πŸ’–


🌸 Documentation 🌸

so under the docs we've got Module Doc, and its signature is exactly : sig end β€” yes bestie, that's the whole vibe 🫢

It's giving Format_doc functions for error messages πŸ’…

Here are the vals, no skips, no cap:

  • val longident : Longident.t Format_doc.printer β€” iconic printer signature, exactly as written ✨
  • val constr : Longident.t Format_doc.printer β€” same printer energy, different val name πŸŽ€
  • val tyvar : string Format_doc.printer β€” yup, a printer for string, slay 🌸
  • val nominal_exp : Parsetree.expression -> Format_doc.t option β€” Returns a format document if the expression reads nicely as the subject of a sentence in an error message. like, it only shows up when the expression is serving main-character sentence energy πŸ˜­πŸ‘‘

this iconic little page was brought to you by OCamldoc on 2026-06-22, and the manual itself is Pprintast.Doc(3) β€” periodt, go off πŸ’…πŸ«ΆπŸ”₯

πŸ“¦ where this page comes from