<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>its_out_of_tune</author_name>
  <author_url>https://blog.hatena.ne.jp/its_out_of_tune/</author_url>
  <blog_title>capriccioso String Creating(Object something){ return My.Expression(something); }</blog_title>
  <blog_url>https://its-out-of-tune.hatenadiary.org/</blog_url>
  <categories>
    <anon>Haskell</anon>
  </categories>
  <description>そもそも、今日はderivingについて書こうと思っていたのですが、その前に型を作る段階で一つ記事が書けるレベルの内容だったので、まずはちょっとした型を定義してみる事にします。 module Main where --型 Bar を作成 newtype Bar = Bar Int deriving (Eq,Read,Show) --Bar と Int 間の変換 fromBar :: Bar -&gt; Int fromBar (Bar a) = a toBar :: Int -&gt; Bar toBar a = Bar a --二項演算の定義を簡易化 calcBar :: (Int -&gt; Int -&gt; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fits-out-of-tune.hatenadiary.org%2Fentry%2F20111214%2F1323889896&quot; title=&quot;Haskellで新しい型を定義する - capriccioso String Creating(Object something){ return My.Expression(something); }&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>2011-12-14 04:11:36</published>
  <title>Haskellで新しい型を定義する</title>
  <type>rich</type>
  <url>https://its-out-of-tune.hatenadiary.org/entry/20111214/1323889896</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
