diff options
author | Alban Gruin | 2020-09-11 23:39:47 +0200 |
---|---|---|
committer | Alban Gruin | 2020-09-11 23:39:47 +0200 |
commit | 3dc6cc287227bdfc218e79ea4753b601689eff2a (patch) | |
tree | a46ed8f09d8c4145cf327099d5325bc56d174b51 /src/ucs.ml | |
parent | dd909afda419f39f16120fbfe0e60d847f6f3e2d (diff) |
ics: clean Event module, conversion to string
Signed-off-by: Alban Gruin <alban at pa1ch dot fr>
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 |