<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>minegishirei</author_name>
  <author_url>https://blog.hatena.ne.jp/minegishirei/</author_url>
  <blog_title>プログラミング学習サイト</blog_title>
  <blog_url>https://minegishirei.hatenablog.com/</blog_url>
  <categories>
    <anon> </anon>
  </categories>
  <description>ほとんどのプログラミングでは副作用は必要不可欠です。 Haskellの世界では純粋なコードの副作用から完全に分離されます。 Haskellの関数に副作用がある場合、IOのマークが付与されます。 標準入力と標準出力 Haskellにおける標準入力はgetLine関数を使用します。 逆に、putStrLn関数は標準出力を行います。 main = do putStrLn &quot;Greetings! What is your name?&quot; inpStr &lt;- getLine putStrLn $ &quot;Welcome to Haskell, &quot; ++ inpStr ++ &quot;!&quot; 入力結果 &gt; runghc b…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fminegishirei.hatenablog.com%2Fentry%2F2023%2F12%2F04%2F093642&quot; title=&quot;Haskellにおける標準入力と標準出力
 - プログラミング学習サイト&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>2026-05-26 03:58:56</published>
  <title>Haskellにおける標準入力と標準出力
</title>
  <type>rich</type>
  <url>https://minegishirei.hatenablog.com/entry/2023/12/04/093642</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
