<?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>不完全なパターンについての警告 GHC に不完全なパターンがあった場合警告する -fwarn-incomplete-patterns というオプションがあります。 【例】 test [] = &quot;&quot; test (a:b:c:rest) = show a ++ show b ++ show c ++ test rest -fwarn-incomplete-patterns オプションを付けない場合。 PS C:\card&gt; ghci test.hs Main&gt; test [1,2,3] &quot;123&quot; Main&gt; test [1,2,3,4,5] &quot;123*** Exception: test.hs:…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirocco.hatenadiary.org%2Fentry%2F20100510%2F1273459912&quot; title=&quot;不完全なパターンについての警告(-fwarn-incomplete-patterns) - 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>2010-05-10 11:51:52</published>
  <title>不完全なパターンについての警告(-fwarn-incomplete-patterns)</title>
  <type>rich</type>
  <url>https://sirocco.hatenadiary.org/entry/20100510/1273459912</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
