title: Repeating function recursive in Haskell
body: <p>I am trying to make a function that outputs <code>char*m</code> <code>n</code> times, as such as the expected output would be <code>["ccc","ccc"]</code> for the input <code>2 3 c</code>. Here is what i have so far:</p>
  
  <pre><code>rectangle :: Int -&gt; Int -&gt; Char -&gt; [string]
  rectangle n m c 
      | m &gt; 0 = [concat ([[c]] ++ (rectangle n (m-1) c))] 
      | otherwise = []
  </code></pre>
  
  <p>I am able to carry out the first part, <code>char*m</code>, so it returns <code>["ccc"]</code>. Thing is: I also would like to be able to repeat my string <code>n</code> times. </p>
  
  <p>I have tried using replicate but it doesn't seem to work, yet it works if doing it in the console: <code>replicate 2 (rectangle 2 3 c)</code>.</p>