module test
-import StdEnv
+//import Data.Func
+import iTasks
-import graph_copy_with_names, symbols_in_program
-import System.CommandLine
-
-test :: !{#Symbol} a -> a
-test symbols a
- # (a, b, c) = copy_to_string_with_names a
- # (a, r) = copy_from_string_with_names a b c symbols
- = a
-
-polyid :: (A.a: a -> a) -> (Int, Bool)
-polyid f = (f 42, f True)
-
-Start w
- # ([argv0:_], w) = getCommandLine w
- # (symbols, w) = accFiles (read_symbols argv0) w
- = test symbols (polyid id)
+Start w = doTasks (onStartup par) w
+where
+ par :: Task [(Int, TaskValue ())]
+ par = parallel [] []
+//Start w = doTasks (onStartup $ m >>- traceValue) w
+//
+//m = parallel
+// [(Embedded, \stl->return 42)]
+// []
+// [OnValue $ \tv->case tv of
+// NoValue = ?None
+// _ = ?None
+// ]