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 Ast_helper.Cty

module Cty: sig .. end
Class type expressions

val mk : ?loc:Ast_helper.loc ->       ?attrs:Ast_helper.attrs -> Parsetree.class_type_desc -> Parsetree.class_type
val attr : Parsetree.class_type -> Parsetree.attribute -> Parsetree.class_type
val constr : ?loc:Ast_helper.loc ->       ?attrs:Ast_helper.attrs ->       Ast_helper.lid -> Parsetree.core_type list -> Parsetree.class_type
val signature : ?loc:Ast_helper.loc ->       ?attrs:Ast_helper.attrs -> Parsetree.class_signature -> Parsetree.class_type
val arrow : ?loc:Ast_helper.loc ->       ?attrs:Ast_helper.attrs ->       Asttypes.label ->       Parsetree.core_type -> Parsetree.class_type -> Parsetree.class_type
val extension : ?loc:Ast_helper.loc ->       ?attrs:Ast_helper.attrs -> Parsetree.extension -> Parsetree.class_type