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.Mod

module Mod: sig .. end
Module expressions

val mk : ?loc:Ast_helper.loc ->       ?attrs:Ast_helper.attrs ->       Parsetree.module_expr_desc -> Parsetree.module_expr
val attr : Parsetree.module_expr -> Parsetree.attribute -> Parsetree.module_expr
val ident : ?loc:Ast_helper.loc ->       ?attrs:Ast_helper.attrs -> Ast_helper.lid -> Parsetree.module_expr
val structure : ?loc:Ast_helper.loc ->       ?attrs:Ast_helper.attrs -> Parsetree.structure -> Parsetree.module_expr
val functor_ : ?loc:Ast_helper.loc ->       ?attrs:Ast_helper.attrs ->       Ast_helper.str ->       Parsetree.module_type option ->       Parsetree.module_expr -> Parsetree.module_expr
val apply : ?loc:Ast_helper.loc ->       ?attrs:Ast_helper.attrs ->       Parsetree.module_expr -> Parsetree.module_expr -> Parsetree.module_expr
val constraint_ : ?loc:Ast_helper.loc ->       ?attrs:Ast_helper.attrs ->       Parsetree.module_expr -> Parsetree.module_type -> Parsetree.module_expr
val unpack : ?loc:Ast_helper.loc ->       ?attrs:Ast_helper.attrs -> Parsetree.expression -> Parsetree.module_expr
val extension : ?loc:Ast_helper.loc ->       ?attrs:Ast_helper.attrs -> Parsetree.extension -> Parsetree.module_expr