It appears that ocaml-migrate-parsetree 1.7.1 added a new, top-level (non-wrapped) Option module. This breaks anything using the stdlib's option module. Example program:
File "main.ml", line 1, characters 8-19:
1 | let x = Option.iter
^^^^^^^^^^^
Error (alert deprecated): module Option
Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Option instead.
File "main.ml", line 1, characters 8-19:
1 | let x = Option.iter
^^^^^^^^^^^
Error: Unbound value Option.iter
If the ocaml-migrate-parsetree dependency is removed, it works.
It appears that ocaml-migrate-parsetree 1.7.1 added a new, top-level (non-wrapped)
Option
module. This breaks anything using the stdlib's option module. Example program:and
dune
file:This fails with:
If the
ocaml-migrate-parsetree
dependency is removed, it works.(seen in https://github.com/ocaml/opam-repository/issues/16216)