Import hs-plugins cvs
This commit is contained in:
6
examples/eval/eval2/Main.hs
Normal file
6
examples/eval/eval2/Main.hs
Normal file
@ -0,0 +1,6 @@
|
||||
import Eval.Haskell
|
||||
|
||||
main = do m_s <- eval "map toUpper \"haskell\"" ["Data.Char"]
|
||||
case m_s of
|
||||
Nothing -> putStrLn "typechecking failed"
|
||||
Just s -> putStrLn s
|
2
examples/eval/eval2/Makefile
Normal file
2
examples/eval/eval2/Makefile
Normal file
@ -0,0 +1,2 @@
|
||||
TOP=../../..
|
||||
include ../../eval.mk
|
1
examples/eval/eval2/expected
Normal file
1
examples/eval/eval2/expected
Normal file
@ -0,0 +1 @@
|
||||
HASKELL
|
Reference in New Issue
Block a user