title: How do I convert specific chars with my function without parsing errors?
body: <p>I want to convert Chars to Strings with a certain function, but it keeps outputting errors</p>
  
  <p>This is my code:</p>
  
  <pre><code>convert1 :: Char -&gt; String
  convert1 x = 
  if [x] == "+"
      then x
      else if [x] == "*"
          then x
          else if [x] == "^"
              then x
              else menge ((read [x]) :: Int)
  </code></pre>
  
  <p>menge is a function that takes Integers and outputs Strings - I know this isn't that nice, but the chars this will get will always be the three characters above or a number.
  I'm getting the result</p>
  
  <pre><code>operations.hs:12:1: error:
      parse error (possibly incorrect indentation or mismatched brackets)
     |
  12 | if [x] == "+"
     | ^
  </code></pre>
  
  <p>Thanks a lot in advance!</p>