# HG changeset patch # User wenzelm # Date 1459804128 -7200 # Node ID 045dc4ad6d98aa7123e925c2425916b7176fa537 # Parent b2f951051472af998cb2b838658f64637acc93f9 tuned; diff -r b2f951051472 -r 045dc4ad6d98 src/Pure/ML/ml_name_space.ML --- a/src/Pure/ML/ml_name_space.ML Mon Apr 04 23:08:43 2016 +0200 +++ b/src/Pure/ML/ml_name_space.ML Mon Apr 04 23:08:48 2016 +0200 @@ -60,14 +60,13 @@ (* Standard ML name space *) + val exclude_structures = ["PolyML", "CInterface", "Foreign", "RunCall", "RuntimeCalls", "Signal"]; + val sml_val = List.filter (fn (a, _) => a <> "use" andalso a <> "exit") (#allVal global ()); val sml_type = #allType global (); val sml_fixity = #allFix global (); val sml_structure = - List.filter (fn (a, _) => - List.all (fn b => a <> b) - ["PolyML", "CInterface", "Foreign", "RunCall", "RuntimeCalls", "Signal"]) - (#allStruct global ()); + List.filter (fn (a, _) => List.all (fn b => a <> b) exclude_structures) (#allStruct global ()); val sml_signature = #allSig global (); val sml_functor = #allFunct global (); end; diff -r b2f951051472 -r 045dc4ad6d98 src/Pure/ML/ml_pervasive_final.ML --- a/src/Pure/ML/ml_pervasive_final.ML Mon Apr 04 23:08:43 2016 +0200 +++ b/src/Pure/ML/ml_pervasive_final.ML Mon Apr 04 23:08:48 2016 +0200 @@ -6,9 +6,8 @@ if Options.default_bool "ML_system_unsafe" then () else - (List.app ML_Name_Space.forget_structure - ["CInterface", "Foreign", "RunCall", "RuntimeCalls", "Signal"]; - ML \structure PolyML = struct structure IntInf = PolyML.IntInf end\); + (List.app ML_Name_Space.forget_structure (remove (op =) "PolyML" ML_Name_Space.exclude_structures); + ML \structure PolyML = struct structure IntInf = PolyML.IntInf end\); structure Output: OUTPUT = Output; (*seal system channels!*)