2005-04-24 08:51:33 +00:00

6 lines
149 B
Haskell

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