dbuenzli / logs

Logging infrastructure for OCaml
http://erratique.ch/software/logs
ISC License
86 stars 19 forks source link

Add type constraint to please the 4.04.0 compiler #16

Closed damiendoligez closed 8 years ago

damiendoligez commented 8 years ago

Because of an obscure fix to an obscure bug in 4.02 and earlier, the 4.03 and 4.04 compilers will reject this code if you don't explicitly state the type of the elements (not) stored into the list variable. This fix should be compatible with all earlier OCaml versions.

See http://caml.inria.fr/mantis/view.php?id=6752

dbuenzli commented 8 years ago

Thanks, the patch is in as d05aeeff246824e.

A new release is on its way to the OPAM OCaml repository in https://github.com/ocaml/opam-repository/pull/7166