Pprintast.Doc(3) OCaml library Pprintast.Doc(3)

Pprintast.Doc - Format_doc functions for error messages

Module Pprintast.Doc

Module Doc
: sig end

Format_doc functions for error messages

val longident : Longident.t Format_doc.printer

val constr : Longident.t Format_doc.printer

val tyvar : string Format_doc.printer

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 a error message.

2025-01-20 OCamldoc