Import hs-plugins cvs
This commit is contained in:
5
examples/eval/eval1/Main.hs
Normal file
5
examples/eval/eval1/Main.hs
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
import Eval.Haskell
|
||||
|
||||
main = do i <- eval "1 + 6 :: Int" [] :: IO (Maybe Int)
|
||||
if isJust i then putStrLn $ show (fromJust i) else return ()
|
Reference in New Issue
Block a user