2005-09-03 04:45:14 +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 ()