{"author_url":"https://blog.hatena.ne.jp/sirocco/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirocco.hatenadiary.org%2Fentry%2F20090618%2F1245309881\" title=\"\u578b\u30af\u30e9\u30b9\u306f\u7570\u306a\u308b\u30c7\u30fc\u30bf\u578b\u306b\u5171\u901a\u3059\u308b\u64cd\u4f5c\u3092\u5b9a\u7fa9\u3059\u308b\u3002 - 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>","categories":["Haskell"],"width":"100%","url":"https://sirocco.hatenadiary.org/entry/20090618/1245309881","image_url":null,"blog_title":"sirocco \u306e\u66f8\u3044\u3066\u3082\u3059\u3050\u306b\u5fd8\u308c\u308b\u30e1\u30e2","height":"190","published":"2009-06-18 16:24:41","title":"\u578b\u30af\u30e9\u30b9\u306f\u7570\u306a\u308b\u30c7\u30fc\u30bf\u578b\u306b\u5171\u901a\u3059\u308b\u64cd\u4f5c\u3092\u5b9a\u7fa9\u3059\u308b\u3002","provider_url":"https://hatena.blog","blog_url":"https://sirocco.hatenadiary.org/","description":"\u578b\u30af\u30e9\u30b9(type class)\u306f\u7570\u306a\u308b\u30c7\u30fc\u30bf\u578b\u306b\u5171\u901a\u3059\u308b\u64cd\u4f5c\u3092\u5b9a\u7fa9\u3059\u308b\u3002 class SayHello a where sayHello :: a -> String\u305d\u306e1 Person \u578b data Person = Person { name :: String, msg :: String} deriving (Eq, Ord, Show)Person \u578b\u306e SayHello \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9 instance SayHello Person where sayHello (Person name msg ) = \"name:\"++ name ++\" \" ++ msg \u305d\u306e2 Employ\u2026","type":"rich","provider_name":"Hatena Blog","author_name":"sirocco","version":"1.0"}