<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yu_dotnet2004</author_name>
  <author_url>https://blog.hatena.ne.jp/yu_dotnet2004/</author_url>
  <blog_title>ペンギン村 Tech Blog</blog_title>
  <blog_url>https://blog.penginmura.tech/</blog_url>
  <categories>
    <anon>swift</anon>
    <anon>haskell</anon>
  </categories>
  <description>さて、前回は Haskell のリストや再帰処理などを見てきました。 今回はこれまで見てきたデータ型について軽く復習した上で、より詳細について見ていきます。 直積と直和 直積データ 直和データ 直積と直和の組み合わせ レコード構文 type / newtype データ型の宣言の意味 多相型 カインド Swift との用語比較 まとめ あとがき 直積と直和 Haskell では直積と直和のデータを扱えるのでした。 Swift では直積については構造体、直和については enum を使用して定義できますが、 Haskell ではどちらも data キーワードを使って定義します。 また値を取り出す際、…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.penginmura.tech%2Fentry%2F2021%2F03%2F17%2F180836&quot; title=&quot;6. レコード構文と多相型とカインドと :: Swift プログラマのための Haskell 入門 - ペンギン村 Tech Blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-03-17 18:08:36</published>
  <title>6. レコード構文と多相型とカインドと :: Swift プログラマのための Haskell 入門</title>
  <type>rich</type>
  <url>https://blog.penginmura.tech/entry/2021/03/17/180836</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
