added source: string -> (string, string list) Source.source;
authorwenzelm
Tue, 19 May 1998 17:14:28 +0200
changeset 4943 a1b5d156ec33
parent 4942 067533f8c419
child 4944 a6e71e5a1004
added source: string -> (string, string list) Source.source;
src/Pure/Thy/file.ML
--- a/src/Pure/Thy/file.ML	Tue May 19 17:14:01 1998 +0200
+++ b/src/Pure/Thy/file.ML	Tue May 19 17:14:28 1998 +0200
@@ -14,6 +14,7 @@
   val write: string -> string -> unit
   val append: string -> string -> unit
   val copy: string -> string -> unit
+  val source: string -> (string, string list) Source.source
 end;
 
 structure File: FILE =
@@ -60,5 +61,7 @@
   if not (exists infile) then error ("File not found: " ^ quote infile)
   else write outfile (read infile);
 
+val source = Source.of_string o read;
+
 
 end;