Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Ocamldoc fails with "analyse_module: parsetree and typedtree don't match" #6758
Original bug ID: 6758
When launching ocamldoc on files which use some specific forms of module inclusion and/or aliases, ocamldoc fails with the following message:
analyse_module: parsetree and typedtree don't match.
Steps to reproduce
The following example code should trigger the error:
module H = Set.Make(struct type t = int let compare = Pervasives.compare end)
It is often possible to sidestep the issue by removing/modifying module aliases in the affected files.