<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Learning OCaml</title>
    <link>https://learning-ocaml.writeas.com/</link>
    <description>Notes from an OCaml learner</description>
    <pubDate>Thu, 26 Nov 2026 15:29:09 +0000</pubDate>
    <item>
      <title>(Not) Finding Documentation for OCaml Packages</title>
      <link>https://learning-ocaml.writeas.com/not-finding-documentation-for-ocaml-packages?pk_campaign=rss-feed</link>
      <description>OCaml needs better documentation. Some of the Jane Street OCaml packages are documented. Some do not seem to be well-documented. For exam...</description>
      <content:encoded><![CDATA[<p>OCaml needs better documentation. Some of the Jane Street OCaml packages are documented. Some do not seem to be well-documented.</p>

<p>For example, <a href="https://opam.ocaml.org/packages/stdio/" rel="nofollow ugc">stdio</a> doesn&#39;t seem to have any documentation. I gather this is because the package replaces functions in the standard library. That is, it is assumed people understand the functions via proxy.</p>
]]></content:encoded>
      <guid>https://learning-ocaml.writeas.com/not-finding-documentation-for-ocaml-packages</guid>
      <pubDate>Sat, 14 Sep 2019 23:25:38 +0000</pubDate>
    </item>
    <item>
      <title>Getting Started OCaml: Setting up utop with Base</title>
      <link>https://learning-ocaml.writeas.com/getting-started-ocaml-setting-up-utop-with-base?pk_campaign=rss-feed</link>
      <description>It is not obvious how one uses the Jane Street OCaml packages in utop, at least under Linux in 2019. The following assumes that you have ...</description>
      <content:encoded><![CDATA[<p>It is not obvious how one uses the Jane Street OCaml packages in <code>utop</code>, at least under Linux in 2019.</p>

<p>The following assumes that you have managed to get OCaml installed and executing <code>eval $(opam config env)</code> sets up everything correctly in your environment.</p>

<p>The key is to run <code>#require &#34;base&#34;;;</code> in utop. The following sequence should work:</p>

<pre><code>#require &#34;core&#34;;;
open Base;;
List.map ~f:String.length [&#34;Hello&#34;; &#34;World!&#34;];;
</code></pre>

<p>The  <code>List.map</code> above is <code>Base.List.map</code>, as desired.</p>

<p>If you don&#39;t run <code>#require &#34;core&#34;;;</code> you will get the message: <code>Error: Unbound module Base</code>.</p>

<p><a href="https://learning-ocaml.writeas.com/tag:ocaml" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">ocaml</span></a> <a href="https://learning-ocaml.writeas.com/tag:learningocaml" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">learningocaml</span></a> <a href="https://learning-ocaml.writeas.com/tag:utop" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">utop</span></a></p>
]]></content:encoded>
      <guid>https://learning-ocaml.writeas.com/getting-started-ocaml-setting-up-utop-with-base</guid>
      <pubDate>Sun, 02 Jun 2019 21:50:19 +0000</pubDate>
    </item>
  </channel>
</rss>