title: Couldn't match expected type `Text' with actual type `[Char]'
body: <p>This might be a really noobish question, but I can't get past this problem (as I just started learning Haskell).</p>
  
  <p>I have a simple block of code:</p>
  
  <pre><code>module SomeTest where
  import Data.Text
  
  str =  replace "ofo" "bar" "ofofo"
  </code></pre>
  
  <p>If I call this with <code>str</code>, I get:</p>
  
  <blockquote>
  <pre><code>&lt;interactive&gt;:108:19: error:
  * Couldn't match expected type `Text' with actual type `[Char]'
  * In the first argument of `Data.Text.replace', namely `"ofo"'
    In the expression: Data.Text.replace "ofo" "bar" "ofofo"
    In an equation for `it': it = Data.Text.replace "ofo" "bar" "ofofo"
  
  &lt;interactive&gt;:108:25: error:
  * Couldn't match expected type `Text' with actual type `[Char]'
  * In the second argument of `Data.Text.replace', namely `"bar"'
    In the expression: Data.Text.replace "ofo" "bar" "ofofo"
    In an equation for `it': it = Data.Text.replace "ofo" "bar" "ofofo"
  
  &lt;interactive&gt;:108:31: error:
  * Couldn't match expected type `Text' with actual type `[Char]'
  * In the third argument of `Data.Text.replace', namely `"ofofo"'
    In the expression: Data.Text.replace "ofo" "bar" "ofofo"
    In an equation for `it': it = Data.Text.replace "ofo" "bar" "ofofo"
  </code></pre>
  </blockquote>
  
  <p>I don't know why I'm getting this error and how to get pass it. Isn't <code>Text</code> just a synonym for <code>[Char]</code>?</p>