<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lyrical_logical</author_name>
  <author_url>https://blog.hatena.ne.jp/lyrical_logical/</author_url>
  <blog_title>ろじかるんるんものがたり</blog_title>
  <blog_url>https://lyrical-logical.hatenadiary.org/</blog_url>
  <categories>
    <anon>haskell</anon>
    <anon>scala</anon>
  </categories>
  <description>#scala にあって他の関数型言語には見られない機能として、PartialFuncttionがあるが、良いものだと思う(命名は良くない。CheckableFunctionとか他の名前が良かった気がする)。おかげでcollectみたいなメソッドが定義できるし、他にも応用が利く。 という @kmizu さんの発言があったので Haskell でもやっときます。 {-# LANGUAGE TypeOperators #-} import Data.Maybe type Open a = a -&gt; a fix :: (a -&gt; a) -&gt; a fix f = f (fix f) close :: O…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flyrical-logical.hatenadiary.org%2Fentry%2F20111231%2F1325343173&quot; title=&quot;PartialFunction in Haskell - ろじかるんるんものがたり&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>2011-12-31 23:52:53</published>
  <title>PartialFunction in Haskell</title>
  <type>rich</type>
  <url>https://lyrical-logical.hatenadiary.org/entry/20111231/1325343173</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
