src/Pure/ML-Systems/polyml-5.0.ML
changeset 24600 5877b88f262c
parent 23139 aa899bce7c3b
child 24605 98689b0e5956
--- a/src/Pure/ML-Systems/polyml-5.0.ML	Sun Sep 16 14:52:34 2007 +0200
+++ b/src/Pure/ML-Systems/polyml-5.0.ML	Sun Sep 16 14:55:48 2007 +0200
@@ -11,9 +11,9 @@
 
 (* improved versions of use_text/file *)
 
-fun use_text name (print, err) verbose txt =
+fun use_text (tune: string -> string) name (print, err) verbose txt =
   let
-    val in_buffer = ref (explode txt);
+    val in_buffer = ref (explode (tune txt));
     val out_buffer = ref ([]: string list);
     fun output () = implode (rev (case ! out_buffer of "\n" :: cs => cs | cs => cs));