Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
occasionally unhelpful behavior of toplevel when printing values #7751
Original bug ID: 7751
If I do this on the Ocaml toplevel:
what I see is this:
The problem (in my opinion) is that some of the values are printed as
even if they are not abstract and the corresponding *.cmi files (which describes their structure) is available. For some reason, Ocaml toplevel chooses not to process them.
I find this behavior surprising (at least).
Related surprising behavior is that when I install printers for those values that are printed as "", those printers will not be used
Interestingly, if I make some dummy calls of functions in some of the modules that Ocaml toplevel (temporarily) avoided to process, it processes them lazily and then the printing procedures behave in an expected manner.
Steps to reproduce
In Ocaml toplevel:
referenced this issue
Mar 13, 2018
This appears to be fixed in 4.07.1: