maranget / hevea

Hevea is a fast latex to html translator
http://hevea.inria.fr
Other
97 stars 12 forks source link

OCaml 5 support: remove uses of deprecated functions #68

Closed Octachron closed 2 years ago

Octachron commented 2 years ago

This PR replaces the deprecated functions that were removed in OCaml 5 by their OCaml ≥4.08 equivalent. It also sneakily enable the deprecation warning.

maranget commented 2 years ago

Nice, thanks.

If I understand correctly, hevea would not compile with OCaml < 4.08 ? We can probably live with that.

Octachron commented 2 years ago

After one more test, hevea already requires 4.08 due to the use of Float.round in #35 . Thus this PR doesn't change anything in term of compatibility with old versions of OCaml.

maranget commented 2 years ago

Fine, so I'll merge correct a few other warnings and release.