title: How to use the emojis in Haskell?
body: <p>I am working on doing the following :</p>
  
  <p>a)  Implement  a  function enc ::  String -> String that  converts  all  lowercase  ASCII  letters into emojis and all uppercase ASCII letters into symbols representing animals.</p>
  
  <p>b)  Implement a function dec ::  String -> String that implements the inverse function, converting emojis and symbols representing animals into ASCII letters.</p>
  
  <p>I have started doing the following to check whether to decode or encode based on the input :</p>
  
  <pre><code>-- Peek into the content to decide whether we encode or decode.
  convert :: String -&gt; String
  convert xs
   | null $ filter (\c -&gt; isLetter c &amp;&amp; isAscii c) xs = dec xs
   | otherwise = enc xs   
  
  main = do
      contents &lt;- getContents
      putStr $ convert contents
  </code></pre>
  
  <p>The problem is how to use the emojis in the haskell workflow. using emojis inside haskell always give me <code>parse input error</code> even when i am using <code>Data.Char</code></p>