diff options
Diffstat (limited to 'src/ucs.ml')
-rw-r--r-- | src/ucs.ml | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -33,7 +33,7 @@ let body = let dump_date = CalendarLib.Printer.Calendar.to_string let () = - let body = Lwt_main.run body in - List.iter (fun Ics.{start; stop; summary; category; location} -> - Printf.printf "%s\n%s\n%s\n%s\n%s\n\n" (dump_date start) (dump_date stop) summary category location) - @@ Course.decode body + Lwt_main.run body + |> Course.decode + |> Ics.to_string + |> print_endline |