Commits

Paweł Wieczorek committed c37dfb5

printing to file

  • Participants
  • Parent commits 43bf397

Comments (0)

Files changed (2)

 author          = "Pawel Wieczorek"
 name            = "stringpainter"
-version         = "0.5"
+version         = "0.6"
 description     = "Pretty printing combinators, designed for printing ASTs."
 
 archive(native) = "StringPainter.cmxa"
 
 let render_painter out_channel sp = Core.render_painter out_channel sp
 
-let print_painter out_channel sp = print_string (render_painter out_channel sp)
+let print_painter out_channel sp = output_string out_channel (render_painter out_channel sp)
 
-let print_painter_nl out_channel sp = print_endline (render_painter out_channel sp)
+let print_painter_nl out_channel sp = output_string out_channel ((render_painter out_channel sp) ^ "\n")
 
 (*********************************************************************************************************************
  * Basic painters