<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sirocco</author_name>
  <author_url>https://blog.hatena.ne.jp/sirocco/</author_url>
  <blog_title>sirocco の書いてもすぐに忘れるメモ</blog_title>
  <blog_url>https://sirocco.hatenadiary.org/</blog_url>
  <categories>
    <anon>Haskell</anon>
  </categories>
  <description>maxBound、minBound は出力する型を指定するをその型が表現できる最大値、最小値を出力します。 &gt; maxBound::Char --&gt;'\1114111' &gt; maxBound::Int --&gt; 2147483647 &gt; minBound::Char --&gt;'\NUL' &gt; minBound::Int --&gt; -2147483648 これと同じように自分でも出力する型を指定すると動作の変わる関数を定義したくなって以下の型クラスとインスタンスを定義してみました。 returnNum というIntegerを引数とする関数に出力する型を指定して、Integerを返させたり、String…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirocco.hatenadiary.org%2Fentry%2F20130309%2F1362843650&quot; title=&quot;出力する値を型を指定することにより変化させる( Use -XTypeSynonymInstances if you want to disable this) - sirocco の書いてもすぐに忘れるメモ&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>2013-03-09 00:40:50</published>
  <title>出力する値を型を指定することにより変化させる( Use -XTypeSynonymInstances if you want to disable this)</title>
  <type>rich</type>
  <url>https://sirocco.hatenadiary.org/entry/20130309/1362843650</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
