monomorph structgen
[clean-tests.git] / test.icl
index 609d79e..dddfbe1 100644 (file)
--- a/test.icl
+++ b/test.icl
@@ -1,25 +1,20 @@
 module test
-import qualified Data.Map as DM
-import iTasks
-import Data.Func
-import Data.Tuple
+
 import StdEnv
 
-Start w = doTasksWithOptions (\a o->Ok $ flip tuple {o & autoLayout=True} $
-       (parallel
-               [(Embedded, tab "tab1")
-               ,(Embedded, tab "tab2")
-               ]
-               [ OnAction (Action "New") (always (Embedded, tab "New tab"))
-               , OnAction (Action " ") (always (Embedded, tab "New tab"))
-               , OnAction (Action "Close") (never (Embedded, \_->treturn ()))
-               , OnAction (Action "Dis no icon") (never (Embedded, \_->treturn ()))
-               , OnAction (Action "+") (always (Embedded, tab "New tab"))
-               ]
-       <<@ ArrangeWithTabs True
-       <<@ ApplyLayout (setActionIcon ('DM'.put " " "new" 'DM'.newMap))
-       )) w
+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)
 
-tab title _ = tune (Title title)
-       $   viewInformation [] ()
-       >>* [OnAction (Action "Close") (always (treturn ()))]
+Start w
+       # ([argv0:_], w) = getCommandLine w
+       # (symbols, w) = accFiles (read_symbols argv0) w
+       = test symbols (polyid id)