<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>IzumiSy</author_name>
  <author_url>https://blog.hatena.ne.jp/IzumiSy/</author_url>
  <blog_title>Runner in the High</blog_title>
  <blog_url>https://izumisy.work/</blog_url>
  <categories>
    <anon>Elm</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>Elmは静的型付言語なので、型のチカラを活かすことでコンパイラに「あっては行けない状態や組み合わせ」をチェックさせることができる。 高度な例としては前回書いた以下の幽霊型（Phantom Type）の記事があるが、もう少し簡単な例を紹介しようと思う。 izumisy.work 自作Error型の例 以下は自作のError型を定義した例だ。Error型はカスタムタイプになっていて、エラーのパターンを表現している。 それぞれのエラーはエラーのメッセージを持っていて、それらをtoString関数で取り出す事ができる module Error exposing (Error, handle, toSt…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fizumisy.work%2Fentry%2F2020%2F01%2F28%2F092542&quot; title=&quot;Elmにおける「型によるルールづけ」の考え方 - Runner in the High&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-01-28 09:25:42</published>
  <title>Elmにおける「型によるルールづけ」の考え方</title>
  <type>rich</type>
  <url>https://izumisy.work/entry/2020/01/28/092542</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
