Quick StartTryGuideAPICommunityBlogGitHub

Standard Library

Below is the API for the OCaml standard library. It's directly copied over from the OCaml Manual, formatted to the Reason syntax and styled accordingly. The API docs are work-in-progress; we'll be polishing these gradually!

If you're targeting JavaScript, the API docs for BuckleScript includes all of below, plus JS-specific APIs.

Module Pprintast

module Pprintast: sig .. end

type space_formatter = Pervasives.format(unit, Format.formatter, unit);
class printer : unit -> object .. end
let default: printer;
let toplevel_phrase: (Format.formatter, Parsetree.toplevel_phrase) => unit;
let expression: (Format.formatter, Parsetree.expression) => unit;
let string_of_expression: Parsetree.expression => string;
let top_phrase: (Format.formatter, Parsetree.toplevel_phrase) => unit;
let core_type: (Format.formatter, Parsetree.core_type) => unit;
let pattern: (Format.formatter, Parsetree.pattern) => unit;
let signature: (Format.formatter, Parsetree.signature) => unit;
let structure: (Format.formatter, Parsetree.structure) => unit;
let string_of_structure: Parsetree.structure => string;