{"published":"2011-09-06 01:42:17","categories":["Haskell"],"blog_title":"wvogel\u65e5\u8a18","version":"1.0","blog_url":"https://wvogel00.hatenadiary.org/","author_url":"https://blog.hatena.ne.jp/wvogel00/","description":"\u30e2\u30ca\u30c9\u306b\u3064\u3044\u3066\u3001\u4eca\u307e\u3067State\u30e2\u30ca\u30c9\u3068Get,\u3064\u3044\u3067\u306b\u3044\u3048\u3070Applicative\u7a0b\u5ea6\u3057\u304b\u4f7f\u3063\u305f\u3053\u3068\u304c\u306a\u3044\u306e\u3067\u3001\u305d\u306e\u4ed6\u306e\u30e2\u30ca\u30c9\u3082\u3001 ttp://www.sampou.org/haskell/a-a-monads/html/ \u3092\u53c2\u8003\u306b\u52c9\u5f37\u3057\u3066\u3044\u304f\u3053\u3068\u306b\u3059\u308b\u3002 \u3068\u3044\u3046\u308f\u3051\u3067\u3001\u307e\u305a\u306f Identity\u30e2\u30ca\u30c9 newtype Identity a = Identity { runIdentity :: a } instance Monad Identity where return a = Identity a (Identity x) >>= f = f x \u3053\u306e\u3088\u3046\u306a\u5b9a\u7fa9\u3060\u305d\u3046\u3002 GHCi\u3067\u5b9f\u9a13\u2026","width":"100%","type":"rich","url":"https://wvogel00.hatenadiary.org/entry/20110906/1315327337","author_name":"wvogel00","title":"Identity","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwvogel00.hatenadiary.org%2Fentry%2F20110906%2F1315327337\" title=\"Identity - wvogel\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","image_url":null,"height":"190"}