diff options
author | Camil Staps | 2016-04-03 22:51:45 +0200 |
---|---|---|
committer | Camil Staps | 2016-04-05 21:35:46 +0200 |
commit | a3412f121648f8c637b78834a2f017a5ad6b7312 (patch) | |
tree | 02a8a4c4567d76a3cad9f0a1e9319366c4f05ded | |
parent | Use dynamics and generics to output type (diff) |
Use genShow from genLibTest instead of gPrint (can show -> type)
-rw-r--r-- | compile.c | 3 | ||||
-rw-r--r-- | iclean.icl | 7 |
2 files changed, 5 insertions, 5 deletions
@@ -71,7 +71,8 @@ int64_t compile(CleanString path, CleanString module) { char cmd[182]; snprintf(cmd, 182, "cd \"%s\" && clm -I $CLEAN_HOME/lib/StdLib -I " "$CLEAN_HOME/lib/Generics -I $CLEAN_HOME/lib/Dynamics -dynamics " - "-ms -nw -b -nt %s -o %s", pathchars, modulechars, modulechars); + "-I $CLEAN_HOME/lib/Gast -ms -nw -b -nt %s -o %s", + pathchars, modulechars, modulechars); free(pathchars); free(modulechars); @@ -38,9 +38,7 @@ readline_history :== "/home/camil/.iclean_history" template :== [ "import StdEnv" , "import StdMaybe" , "import StdDynamic" - , "import GenPrint" - , "derive gPrint (,),(,,),(,,,),(,,,,),(,,,,,),(,,,,,,),(,,,,,,,)," +++ - "(,,,,,,,,),(,,,,,,,,,),(,,,,,,,,,,),(,,,,,,,,,,,),(,,,,,,,,,,,,)" + , "import genLibTest" ] // END SETTINGS @@ -97,8 +95,9 @@ writemodule mem s w # f = f <<< "module " <<< temp_module <<< "\n" # f = f <<< join "\n" mem # f = f <<< "start = " <<< s <<< "\n" + <<< "rslt = genShow{|*|} \"\" True start []\n" <<< "Start = toString (typeCodeOfDynamic (dynamic start)) " - <<< "+++ \" :: \" +++ printToString start +++ \"\\n\"\n" + <<< "+++ \" :: \" +++ foldl (+++) \"\" rslt +++ \"\\n\"\n" # (ok,w) = fclose f w | not ok = abort ("Couldn't close " +++ temp_file +++ "\n") | otherwise = w |