2005-05-15 06:03:55 +00:00

6 lines
156 B
Haskell

import System.Eval.Haskell
main = do i <- eval "1 + 6 :: Int" [] :: IO (Maybe Int)
if isJust i then putStrLn $ show (fromJust i) else return ()