Update examples

This commit is contained in:
Don Stewart
2005-09-03 04:45:14 +00:00
parent 5321754614
commit dff0363224
421 changed files with 19 additions and 9 deletions

View File

@ -0,0 +1,16 @@
import System.Plugins.Make
import System.Eval.Haskell
main = do make "a/Extra.hs" []
i <- unsafeEval_ "show (Just (1 + 6 :: Int)) ++ extra"
["Data.Maybe", "Extra"]
["-ia"] -- no make flags
[] -- no package.confs
["a"] -- include paths to load from
:: IO (Either [String] String)
case i of
Right i -> putStrLn $ show i
Left es -> mapM_ putStrLn es

View File

@ -0,0 +1,2 @@
TOP=../../..
include ../../eval.mk

View File

@ -0,0 +1,3 @@
module Extra where
extra = "an extra value"

View File

@ -0,0 +1 @@
"Just 7an extra value"