<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>keigoi</author_name>
  <author_url>https://blog.hatena.ne.jp/keigoi/</author_url>
  <blog_title>keigoiの日記</blog_title>
  <blog_url>https://keigoi.hatenadiary.org/</blog_url>
  <categories>
    <anon>Haskell</anon>
    <anon>OCaml</anon>
  </categories>
  <description>今日は関数型言語の型で副作用(入出力)の制約を表現する、というお話を書きます。 (勢いで書いたので、わかりやすいかどうか不明です。) Safeio in OCaml ガリグ先生による Caml-list への投稿に Safeio というお話があります。 任意個のチャネルへの入出力に関して、 開かれたチャネルは必ず閉じられる 入力専用で開いたチャネルには入力しかできない 出力専用で開いたチャネルには出力しかできない このような制限をOCamlの型で表現できるんですよ、というお話です。すごいですね。Haskellで同じようなことをやっているネタとして、セッション型をHaskellで実装するお話があ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkeigoi.hatenadiary.org%2Fentry%2F20100704%2F1278223814&quot; title=&quot; 可変状態モナドと安全な入出力とセッション型 in OCaml - keigoiの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-07-04 15:10:14</published>
  <title> 可変状態モナドと安全な入出力とセッション型 in OCaml</title>
  <type>rich</type>
  <url>https://keigoi.hatenadiary.org/entry/20100704/1278223814</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
