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.

Reason API

Arg
Parsing of command line arguments.
Array
Array operations.
ArrayLabels
Array operations.
Buffer
Extensible buffers.
Bytes
Byte sequence operations.
BytesLabels
Byte sequence operations.
Callback
Registering OCaml values with the C runtime.
CamlinternalFormat
CamlinternalFormatBasics
CamlinternalLazy
Run-time support for lazy values.
CamlinternalMod
Run-time support for recursive modules.
CamlinternalOO
Run-time support for objects and classes.
Char
Character operations.
Complex
Complex numbers.
Digest
MD5 message digest.
Filename
Operations on file names.
Format
Pretty printing.
Gc
Memory management control and statistics; finalised values.
Genlex
A generic lexical analyzer.
Hashtbl
Hash tables and hash functions.
Int32
32-bit integers.
Int64
64-bit integers.
Lazy
Deferred computations.
Lexing
The run-time library for lexers generated by ocamllex.
List
List operations.
ListLabels
List operations.
Map
Association tables over ordered types.
Marshal
Marshaling of data structures.
MoreLabels
Extra labeled libraries.
Nativeint
Processor-native integers.
Obj
Operations on internal representations of values.
Oo
Operations on objects
Parsing
The run-time library for parsers generated by ocamlyacc.
Pervasives
The initially opened module.
Printexc
Facilities for printing exceptions and inspecting current call stack.
Printf
Formatted output functions.
Queue
First-in first-out queues.
Random
Pseudo-random number generators (PRNG).
Scanf
Formatted input functions.
Set
Sets over ordered types.
Sort
Sorting and merging lists.
Stack
Last-in first-out stacks.
StdLabels
Standard labeled libraries.
Stream
Streams and parsers.
String
String operations.
StringLabels
String operations.
Sys
System interface.
Weak
Arrays of weak pointers and hash tables of weak pointers.
Ast_helper
Helpers to produce Parsetree fragments
Ast_mapper
The interface of a -ppx rewriter
Asttypes
Docstrings
(Re)Initialise all docstring state
Lexer
Location
An arbitrary value of type t; describes an empty ghost range.
Longident
Parse
Parser
Parsetree
Abstract syntax tree produced by parsing
Pprintast
Printast
Syntaxerr
Unix
Interface to the Unix system.
Str
Regular expressions and high-level string processing
Bigarray
Large, multi-dimensional, numerical arrays.
Num
Operation on arbitrary-precision numbers.