<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">I have a friend who is an architect. I asked her why she does not use Haskell, since she is fond of functional programming. She writes her scripts in Clean, and needs to compile them before using them to generate postscript diagrams. In Haskell, I told her, she could use runghc, and skip the compilation step. She told me that she would consider switching to Haskell, and skipping the compilation step, if I could tell her how to write "façade" in Haskell.<br><br>C:\ghc\hastex&gt;runghc tudin.hs<br><br>tudin.hs:10:19:<br>&nbsp;&nbsp;&nbsp; lexical error in string/character literal (UTF-8 decoding error)<br><br>After browsing the Internet, I noticed that a many of people are having the same problem.&nbsp; Could someone tell me what is wrong with my friend's program?<br><br>import System.IO<br><br>main= do<br>&nbsp;&nbsp; outh &lt;- openFile "garb.tsm"
 WriteMode<br>&nbsp;&nbsp; hPutStrLn outh "A façade is the exterior of a building" <br>&nbsp;&nbsp; hClose outh<br>&nbsp;<br>I would appreciate a "normal" solution, that is, I would like to type the text in any editor, or generate it with LaTeX macros, and compile it using ghc. <br><br></td></tr></table><br>
      <hr size=1>Ask a question on any topic and get answers from real people. <a href="http://ca.answers.yahoo.com"><b>Go to Yahoo! Answers.</b></a>