{"version":"1.0","provider_url":"https://hatena.blog","author_name":"sirocco","author_url":"https://blog.hatena.ne.jp/sirocco/","provider_name":"Hatena Blog","categories":["Haskell"],"url":"https://sirocco.hatenadiary.org/entry/20090412/1239486906","blog_url":"https://sirocco.hatenadiary.org/","height":"190","title":"Haskell \u3067\u30ef\u30f3\u30e9\u30a4\u30ca\u30fc","width":"100%","image_url":null,"blog_title":"sirocco \u306e\u66f8\u3044\u3066\u3082\u3059\u3050\u306b\u5fd8\u308c\u308b\u30e1\u30e2","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirocco.hatenadiary.org%2Fentry%2F20090412%2F1239486906\" title=\"Haskell \u3067\u30ef\u30f3\u30e9\u30a4\u30ca\u30fc - 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>","published":"2009-04-12 06:55:06","type":"rich","description":"\u6804\u5149\u306e\u30b0\u30e9\u30b9\u30b4\u30fcHaskell\u30b3\u30f3\u30d1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u5229\u7528\u306e\u624b\u5f15\u304d \u30d0\u30fc\u30b8\u30e7\u30f36.10.2 5.4.2. \u5f0f\u8a55\u4fa1\u30e2\u30fc\u30c9 ~$ ghc -e 'putStrLn \"Hello,world!\"' Hello,world! ~$ ghc -e 'print $ map (+1) [ 1,2,3 ] ' [ 2,3,4 ] ~$ ghc -e 'print $ map (*2) [ 1,2,3 ] ' [ 2,4,6 ] ~$ echo \"hello\" | ghc -e 'getContents' \"hello\\n\" ~$ echo \"hello\" | ghc -e 'getContents >>= pri\u2026"}