{"title":"\u4e0d\u5b8c\u5168\u306a\u30d1\u30bf\u30fc\u30f3\u306b\u3064\u3044\u3066\u306e\u8b66\u544a(-fwarn-incomplete-patterns)","author_url":"https://blog.hatena.ne.jp/sirocco/","height":"190","width":"100%","url":"https://sirocco.hatenadiary.org/entry/20100510/1273459912","version":"1.0","blog_url":"https://sirocco.hatenadiary.org/","published":"2010-05-10 11:51:52","image_url":null,"provider_name":"Hatena Blog","blog_title":"sirocco \u306e\u66f8\u3044\u3066\u3082\u3059\u3050\u306b\u5fd8\u308c\u308b\u30e1\u30e2","categories":["Haskell"],"author_name":"sirocco","provider_url":"https://hatena.blog","description":"\u4e0d\u5b8c\u5168\u306a\u30d1\u30bf\u30fc\u30f3\u306b\u3064\u3044\u3066\u306e\u8b66\u544a GHC \u306b\u4e0d\u5b8c\u5168\u306a\u30d1\u30bf\u30fc\u30f3\u304c\u3042\u3063\u305f\u5834\u5408\u8b66\u544a\u3059\u308b -fwarn-incomplete-patterns \u3068\u3044\u3046\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u308a\u307e\u3059\u3002 \u3010\u4f8b\u3011 test [] = \"\" test (a:b:c:rest) = show a ++ show b ++ show c ++ test rest -fwarn-incomplete-patterns \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u306a\u3044\u5834\u5408\u3002 PS C:\\card> ghci test.hs Main> test [1,2,3] \"123\" Main> test [1,2,3,4,5] \"123*** Exception: test.hs:\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirocco.hatenadiary.org%2Fentry%2F20100510%2F1273459912\" title=\"\u4e0d\u5b8c\u5168\u306a\u30d1\u30bf\u30fc\u30f3\u306b\u3064\u3044\u3066\u306e\u8b66\u544a(-fwarn-incomplete-patterns) - sirocco \u306e\u66f8\u3044\u3066\u3082\u3059\u3050\u306b\u5fd8\u308c\u308b\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich"}