<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>susisu</author_name>
  <author_url>https://blog.hatena.ne.jp/susisu/</author_url>
  <blog_title>Object.create(null)</blog_title>
  <blog_url>https://susisu.hatenablog.com/</blog_url>
  <categories>
    <anon>TypeScript</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>型をそえて. TL; DR (実用には向かないものの) TypeScript で Algebraic Effects (たぶん) を扱うライブラリを作ってみました. github.com 背景と課題 コールバック地獄の解決 たとえば Haskell や Scala にあるような Either モナドを, TypeScript でも使いたいとします. インターフェースは大雑把にはこういう感じ (必要な部分のみ抜粋): interface Either&lt;L, R&gt; { bind&lt;R2&gt;(k: (x: R) =&gt; Either&lt;L, R2&gt;): Either&lt;L, R2&gt;; } declare fu…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsusisu.hatenablog.com%2Fentry%2F2020%2F05%2F06%2F191200&quot; title=&quot;TypeScript で Algebraic Effects - Object.create(null)&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>2020-05-06 19:12:00</published>
  <title>TypeScript で Algebraic Effects</title>
  <type>rich</type>
  <url>https://susisu.hatenablog.com/entry/2020/05/06/191200</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
