<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ha-tan</author_name>
  <author_url>https://blog.hatena.ne.jp/ha-tan/</author_url>
  <blog_title>趣味的にっき</blog_title>
  <blog_url>https://ha-tan.hatenadiary.org/</blog_url>
  <categories>
    <anon>Haskell</anon>
  </categories>
  <description>いきなりですが、やっぱりHaskellでもデバッグプリントしたいですよね。調べた結果、Debug.Traceにある関数traceを使えばできることがわかりました。おお、副作用が… 実装はきっと暗黒面なんだろうな(キレイな身体じゃ生きられない、みたいな)。 そのまま使ってもいいんですが、せっかくなんでRubyっぽく関数pを定義してみました。 ファイル: a.hs module Main (main) where import Debug.Trace (trace) p :: (Show a) =&gt; a -&gt; a p = p' &quot;&quot; p' :: (Show a) =&gt; String -&gt; a -&gt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fha-tan.hatenadiary.org%2Fentry%2F20060923%2F1158938325&quot; title=&quot; Haskellでもデバッグプリントしたい + Sコンビネータの練習 - 趣味的にっき&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>2006-09-23 00:18:45</published>
  <title> Haskellでもデバッグプリントしたい + Sコンビネータの練習</title>
  <type>rich</type>
  <url>https://ha-tan.hatenadiary.org/entry/20060923/1158938325</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
