Import hs-plugins cvs
This commit is contained in:
16
examples/eval/unsafeidir/Main.hs
Normal file
16
examples/eval/unsafeidir/Main.hs
Normal file
@ -0,0 +1,16 @@
|
||||
|
||||
import Plugins.Make
|
||||
import 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
|
Reference in New Issue
Block a user