<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ytqwerty</author_name>
  <author_url>https://blog.hatena.ne.jp/ytqwerty/</author_url>
  <blog_title>Note</blog_title>
  <blog_url>https://ytqwerty.hatenadiary.org/</blog_url>
  <categories>
    <anon>OCaml</anon>
  </categories>
  <description>モナドを使いやすくするdo構文はHaskellの専売特許です。a &gt;&gt;= (\b -&gt; c &gt;&gt;= (\d &gt;&gt; return e))がdo b &gt;=演算子を連ねた場合、本当は匿名関数をネストしまくってるところを、平坦に書けることですね。 では、匿名関数に括弧が要らなかったら……do構文いらないですね。 OCamlは、関数の引数にfunを書く場合は括弧が必要です。しかし演算子の引数にfunを書く場合は括弧が要りません。インデントは意味を持たないため、最後の;;までごそっと匿名関数に入ります。 まさに狙っているとしか思えない文法ですので、それに乗ってHaskellっぽい記述を試みてみました。 先…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fytqwerty.hatenadiary.org%2Fentry%2F20071222%2Fp1&quot; title=&quot; 頭の悪いモナド - Note&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>2007-12-22 00:00:00</published>
  <title> 頭の悪いモナド</title>
  <type>rich</type>
  <url>https://ytqwerty.hatenadiary.org/entry/20071222/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
