X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=src%2Ftatoo.ml;h=eac804a039a27f829e787e2b900543b80c59ff9e;hb=df5ce50d29b10bfdf26aff02c83d0a7ec614228a;hp=d8c3e0990a833fc66daacfda9805093e75715430;hpb=6ca42ffbd541cede6afcc473b563e54b848ee534;p=tatoo.git diff --git a/src/tatoo.ml b/src/tatoo.ml index d8c3e09..eac804a 100644 --- a/src/tatoo.ml +++ b/src/tatoo.ml @@ -106,7 +106,8 @@ let main () = let module Naive = Run.Make(Naive_tree) in let result_list = - let root = [ Naive_tree.root doc] in + let root = Sequence.create () in + let () = Sequence.add (Naive_tree.root doc) root in let f, msg = match !Options.parallel, !Options.compose with true, true -> @@ -127,10 +128,10 @@ let main () = output_string output (string_of_int !count); output_string output "\" >\n"; if !Options.count then begin - output_string output (string_of_int (List.length results)); + output_string output (string_of_int (Sequence.length results)); output_char output '\n'; end else - List.iter (fun n -> + Sequence.iter (fun n -> Naive_tree.print_xml output doc n; output_char output '\n' ) results;