is there a better/shorter way to do an ocaml one-liner?

"Francois Berenger [email protected] [ocaml_beginners]" <[email protected]>
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <1996811288.265494.1414159445583.JavaMail.yahoo@jws10041.mail.ne1.yahoo.com>
I do this currently:
echo 'Printf.printf "toto\n"' | ocaml /dev/stdin
But it's not very cute neither short I feel.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.