Update examples
This commit is contained in:
9
testsuite/eval/eval_/Main.hs
Normal file
9
testsuite/eval/eval_/Main.hs
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
import System.Eval.Haskell
|
||||
|
||||
main = do i <- eval_ "Just (7 :: Int)"
|
||||
["Maybe"]
|
||||
["-fglasgow-exts"]
|
||||
[]
|
||||
[] :: IO (Either [String] (Maybe (Maybe Int)))
|
||||
print i
|
2
testsuite/eval/eval_/Makefile
Normal file
2
testsuite/eval/eval_/Makefile
Normal file
@ -0,0 +1,2 @@
|
||||
TOP=../../..
|
||||
include ../../eval.mk
|
1
testsuite/eval/eval_/expected
Normal file
1
testsuite/eval/eval_/expected
Normal file
@ -0,0 +1 @@
|
||||
Right (Just (Just 7))
|
Reference in New Issue
Block a user