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

Excerpts from Joe Fox's message of Mon Feb 08 06:25:58 +0100 2010:
Hi [..] Can any one point me in the right way how to use eval function ?
Thanks Joe
I haven't used the module you mentioned but hint worked quite well for me when I needed a way to evaluate Haskell expressions at runtime: http://hackage.haskell.org/package/hint
participants (2)
-
Daniel Schoepe
-
Joe Fox