title: Concatenate String and IO Integer in Haskell
body: <p>I wrote a function returning the current screen width as IO Integer (working so far).</p>
  
  <pre><code>getScreenWidth:: IO Integer
  getScreenWidth = do
                      (sx, sy, w, h) &lt;- getScreenDim 0
                      return $ sx
  </code></pre>
  
  <p>Now I would like to add the screen width to a string:</p>
  
  <pre><code>&gt; magic_function :: IO Integer -&gt; String -&gt; ... magic output type
  &gt; magic_function = ... ? this is where i am stack at ? ...
  </code></pre>
  
  <p>I would like to pass the magic function to a string, something like "Screen Width: " and i want it to add the current screen width, so that i get "Screen Width: 1680". How can i concat an IO Integer and a common String? Does it work with <code>show</code>?</p>
  
  <p>Could anyone help me with that?</p>