src/Pure/General/path.ML
changeset 62663 bea354f6ff21
parent 61877 276ad4354069
child 62819 d3ff367a16a0
equal deleted inserted replaced
62662:291cc01f56f5 62663:bea354f6ff21
   171   let val s = implode_path path
   171   let val s = implode_path path
   172   in Pretty.mark (Markup.path s) (Pretty.str (quote s)) end;
   172   in Pretty.mark (Markup.path s) (Pretty.str (quote s)) end;
   173 
   173 
   174 val print = Pretty.unformatted_string_of o pretty;
   174 val print = Pretty.unformatted_string_of o pretty;
   175 
   175 
       
   176 val _ = PolyML.addPrettyPrinter (fn _ => fn _ => Pretty.to_polyml o pretty);
       
   177 
   176 
   178 
   177 (* base element *)
   179 (* base element *)
   178 
   180 
   179 fun split_path f (Path (Basic s :: xs)) = f (Path xs, s)
   181 fun split_path f (Path (Basic s :: xs)) = f (Path xs, s)
   180   | split_path _ path = error ("Cannot split path into dir/base: " ^ print path);
   182   | split_path _ path = error ("Cannot split path into dir/base: " ^ print path);