title: Replacing Nth character in String array in Haskell
body: <p>I am new to Haskell and functional programming in general. I am trying to implement a function to take a list like this</p>
  
  <pre><code>["abc", "def", "ghi"]
  </code></pre>
  
  <p>and want to be able to replace the xth character in the yth element for example</p>
  
  <pre><code>replaceChar 1 2 'd' arr
  </code></pre>
  
  <p>would produce</p>
  
  <pre><code>["abc", "ded", "ghi"]
  </code></pre>
  
  <p>So essentially the first parameter is the element and the second is the position of the string, the third is the character and last is the [String].</p>
  
  <p>The signature of this function looks like this:</p>
  
  <pre><code>replaceChar :: Int -&gt; Int -&gt; Char -&gt; [String] -&gt; [String]
  </code></pre>
  
  <p>Any help would be appreciated. Thanks!</p>