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