Hi <br><br>I am fairly new to haskell , <br>I was trying to use Eval function in haskell but its giving me a problem ,<br><br> even the example code given in <a href="http://www.cse.unsw.edu.au/%7Edons/hs-plugins/html/System-Eval-Haskell.html"><b>http://www.cse.unsw.edu.au/~dons/hs-plugins/html/System-Eval-Haskell.html</b></a><br>
<br><pre>do i &lt;- eval &quot;1 + 6 :: Int&quot; [] :: IO (Maybe Int)<br>    when (isJust i) $ putStrLn (show (fromJust i))<br><br><br><br><br></pre>is not working for me , it gives following error <br><br>on the commandline: Warning: -Onot is deprecated: Use -O0 instead<br>
<br>and doesnt print 7 , i guess that is what is expected to be printed.<br><br>Can any one point me in the right way how to use eval function ?<br><br><br>Thanks<br>Joe<br>