{"description":"Haskell \u3067\u6a19\u6e96\u30a8\u30e9\u30fc\u51fa\u529b import System.IO main :: IO () main = case f of Right a -> putStr a Left a -> hPrint stderr a f :: Either String String f = ... \u203bEither\u306eLeft\u3082Right\u3082String\u306a\u306e\u306f\u3001\u3053\u306e\u4f8b\u3067\u306f\u305d\u308c\u305e\u308c\u6a19\u6e96\u30a8\u30e9\u30fc\u51fa\u529b\u3068\u6a19\u6e96\u51fa\u529b\u3078\u3068\u51fa\u529b\u3057\u3066\u3044\u308b\u306e\u3067Show\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u5177\u4f53\u4f8b\u3068\u3057\u3066\u3002 \u2193C++\u7684\u306b\u2191\u306b\u4f3c\u305f\u611f\u3058\u306e\u8868\u73fe\u3092\u3059\u308b\u3068 <iostream> struct f { ... }; int main() { f a = ... ; i\u2026","provider_name":"Hatena Blog","width":"100%","blog_title":"C++ \u3068\u304d\u3069\u304d \u3054\u306f\u3093\u3001\u308f\u308a\u3068\u3066\u3043\u30fc\u3076\u308c\u3044\u304f\u2606","url":"https://usagi.hatenablog.jp/entry/2012/03/25/034245","author_url":"https://blog.hatena.ne.jp/USAGI-WRP/","image_url":null,"version":"1.0","type":"rich","provider_url":"https://hatena.blog","published":"2012-03-25 03:42:45","categories":["Haskell","C++","stderr"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fusagi.hatenablog.jp%2Fentry%2F2012%2F03%2F25%2F034245\" title=\"haskell \u306e\u6a19\u6e96\u30a8\u30e9\u30fc\u51fa\u529b\u3001C++\u7684\u306b\u8a00\u3046\u3068\u3053\u308d\u306e std::cerr \u7684\u306a\u305d\u308c\u306e\u30e1\u30e2 - C++ \u3068\u304d\u3069\u304d \u3054\u306f\u3093\u3001\u308f\u308a\u3068\u3066\u3043\u30fc\u3076\u308c\u3044\u304f\u2606\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://usagi.hatenablog.jp/","height":"190","author_name":"USAGI-WRP","title":"haskell \u306e\u6a19\u6e96\u30a8\u30e9\u30fc\u51fa\u529b\u3001C++\u7684\u306b\u8a00\u3046\u3068\u3053\u308d\u306e std::cerr \u7684\u306a\u305d\u308c\u306e\u30e1\u30e2"}