src/Pure/ML-Systems/smlnj.ML
changeset 23139 aa899bce7c3b
parent 22144 c33450acd873
child 23770 2711e0285072
equal deleted inserted replaced
23138:6852373aae8a 23139:aa899bce7c3b
   157 (* basis library fixes *)
   157 (* basis library fixes *)
   158 
   158 
   159 structure TextIO =
   159 structure TextIO =
   160 struct
   160 struct
   161   open TextIO;
   161   open TextIO;
   162 
   162   fun inputLine is = TextIO.inputLine is
   163   fun inputLine is =
       
   164     (case TextIO.inputLine is of
       
   165       SOME str => str
       
   166     | NONE => "")
       
   167     handle IO.Io _ => raise Interrupt;
   163     handle IO.Io _ => raise Interrupt;
   168 end;
   164 end;
   169 
   165 
   170 
   166 
   171 (* bounded time execution *)
   167 (* bounded time execution *)