{"provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Faknow2.hatenablog.com%2Fentry%2F2019%2F03%2F20%2F203349\" title=\"\u3010Elm0.19\u3011Union type\u306eexport\u3059\u308b\u65b9\u6cd5 - aknow2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"aknow2","blog_url":"https://aknow2.hatenablog.com/","width":"100%","height":"190","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/aknow2/","description":"Elm\u3068\u8a00\u3046\u304b\u95a2\u6570\u578b\u8a00\u8a9e\u3067\u5f37\u529b\u306a\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u30f3\u30b0\u3084\u578b\u3092\u5b9a\u7fa9\u3059\u308b\u969b\u306b\u4fbf\u5229\u306aUnion Type \u3053\u3093\u306a\u3084\u3064\u3067\u3059\u3002 type Animal = Cat|Dog \u3053\u308c\u3092\u30e2\u30b8\u30e5\u30fc\u30eb\u304b\u3089Export\u3057\u3066Import\u3059\u308b\u306b\u306f\u3069\u3046\u66f8\u3051\u3070\u3044\u3044\u306e\u304b\u8ff7\u3063\u305f\u306e\u3067\u30e1\u30e2\u3002 \u307e\u305a\u306fExport\u5074 module Submodule exposing (Animal(..)) type Animal = Cat|Dog \u305d\u3057\u3066\u3001import\u3067\u4f7f\u3046\u5074 module Submodule exposing (Animal(..)) case Hoge of Cat -> ... Dog -> ... (..)\u3092\u4ed8\u3051\u308c\u3070OK\u3063\u3066\u4e8b\u2026","categories":[],"author_name":"aknow2","url":"https://aknow2.hatenablog.com/entry/2019/03/20/203349","image_url":null,"version":"1.0","title":"\u3010Elm0.19\u3011Union type\u306eexport\u3059\u308b\u65b9\u6cd5","type":"rich","published":"2019-03-20 20:33:49"}