OCaml modules for writing daemons