Skip to content

Latest commit

 

History

History
207 lines (194 loc) · 7.58 KB

index.md

File metadata and controls

207 lines (194 loc) · 7.58 KB

Documentation

OCaml version: latest
<script src="version_selector.js"></script>

The OCaml Tutorials

The official OCaml tutorials (chapters 1 to 6 of the manual), written by the creators of the language, are the best place to start. They form a complete introduction to programming in OCaml, including the module system, objects, polymorphism, etc.

Read the tutorials

<section class="span6 condensed">
  <h2 class="ruled">The OCaml API</h2>
  <p>This is the place you'll end up most often!  You'll find the
documentation for all modules that ship with any OCaml
distribution. These modules form what is called
the <a id="stdlib" href="/manual/stdlib.html">Standard
Library</a>. In addition, a special
module <code id="stdlib_name">Stdlib</code> contains
the <a id="corref" href="/manual/core.html">core
library</a>, and is always open.

OCaml API

<section class="span6 condensed">
  <h2 class="ruled">The Tools</h2>
  <p>
Many <a id="toolref"
	    href="/manual/index.html#sec286">tools</a>
are bundled with the OCaml language. Among them, the REPL (or
`toplevel'), the documentation generator, lexers, the
debugger, profiling tools, etc.
</p>
<p class="doc-link-wrapper">
	<a id="toolref_b"
	href="/manual/index.html#sec286" class="btn btn-default">
   OCaml Tools</a>
  </p>
</section>

<section class="span6 condensed">
  <h2 class="ruled">The Language Extensions</h2>

  <p>Don't forget to regularly check the
<a id="extref"
   href="/manual/extn.html">Language Extensions</a>,
they will keep you up-to-date with useful new OCaml idioms
and constructions.<br>
  </p>
  <p class="doc-link-wrapper">
	<a id="extref_b"
	href="/manual/extn.html" class="btn btn-default" >
   OCaml Extensions</a>
  </p>
</section>

<section class="span6 condensed">
  <h2 class="ruled">The OCaml Manual</h2>
  <p>The complete documentation is bundled as a
large <a id="manual" href="/manual/index.html">
OCaml Manual</a>.  This manual is also available in
<a id="refman-pdf"
   href="/releases/4.12/ocaml-4.12-refman.pdf">PDF</a>,
<a id="refman-txt"
   href="/releases/4.12/ocaml-4.12-refman.txt">plain text</a>,
as a
<a id="refman-html"
   href="/releases/4.12/ocaml-4.12-refman-html.tar.gz">bundle of
  HTML files</a>, and as a
<a id="refman-info"
   href="/releases/4.12/ocaml-4.12-refman.info.tar.gz">bundle of
  Emacs Info files</a>.
  </p>
  <p class="doc-link-wrapper">
	<a id="manual"
	href="/manual/index.html" class="btn btn-default" >
   OCaml Manual</a>
  </p
</section>


<section class="span6 condensed">
  <h2 class="ruled">Other docs</h2>
  <div class="row">
<a href="license.html" class="span3 documentation-highlight">
  <img src="/img/license.svg" alt="" class="svg">
  <img src="/img/license.png" alt="" class="png">
  OCaml License
</a>
<a href="cheat_sheets.html"
   class="span3 documentation-highlight">
  <img src="/img/cheat.svg" alt="" class="svg" />
  <img src="/img/cheat.png" alt="" class="png" />
  Cheat Sheets
</a>
  </div>
</section>

OPAM and package documentation

OPAM is the source-based package manager for OCaml. It allows you to install OCaml and packages. See the installation instructions. and the OPAM documentation.

The list of OPAM packages has links to their homepage and documentation. The distribution and API documentation of the packages you install locally with OPAM can be accessed via odig.

See more books / See more papers / Read Real World OCaml online

<iframe width="310" height="233" src="//www.youtube.com/embed/NF2WpWnB-nk?feature=player_detailpage" title="In this talk, Mark Shinwell explains how to track down hard-to-find bugs in OCaml programs" allowfullscreen></iframe>

In this talk, Mark Shinwell explains how to track down hard-to-find bugs in OCaml programs. It involves the new gdb functionality which OCamlPro and others have worked on recently. (PDF slides)

<iframe src="//player.vimeo.com/video/14317442?portrait=0&color=ff9933" width="310" height="233" title="Talk at CMU describing the experiences that Jane Street has had using OCaml as its primary development language" allowfullscreen></iframe>

Talk at CMU describing the experiences that Jane Street has had using OCaml as its primary development language.

<iframe src="//player.vimeo.com/video/6652523?portrait=0&color=ff9933" width="310" height="233" title="Experience Report: OCaml for an Industrial-strength Static Analysis Framework Pascal Cuoq and Julien Signoles; CEA LIST International Conference on Functional Programming (ICFP) Edinburgh 2009" allowfullscreen></iframe>

Experience Report: OCaml for an Industrial-strength Static Analysis Framework Pascal Cuoq and Julien Signoles; CEA LIST International Conference on Functional Programming (ICFP) Edinburgh 2009.

See more videos