title: How do I correctly use toLower in Haskell?
body: <p>I've recently started to learn Haskell and wanted to convert something to lowercase. I looked up the function "toLower", but it doesn't seem to work.</p>
  
  <pre><code>Prelude&gt; import Data.Text
  Prelude Data.Text&gt; toLower "JhELlo"
  
  &lt;interactive&gt;:2:9: error:
      * Couldn't match expected type `Text' with actual type `[Char]'
      * In the first argument of `toLower', namely `"JhELlo"'
        In the expression: toLower "JhELlo"
        In an equation for `it': it = toLower "JhELlo"
  Prelude Data.Text&gt; toLower 'JhELlo'
  
  &lt;interactive&gt;:3:9: error:
      * Syntax error on 'JhELlo'
        Perhaps you intended to use TemplateHaskell or TemplateHaskellQuotes
      * In the Template Haskell quotation 'JhELlo'
  Prelude Data.Text&gt;
  </code></pre>