ocaml-doc / doc-ock

(DEPRECATED) Documentation generation for OCaml
ISC License
15 stars 5 forks source link

Provide digest to resolver #32

Closed dsheets closed 9 years ago

dsheets commented 9 years ago

The resolver should get not only the module name but also the expected digest.

dsheets commented 9 years ago

Alternatively, provide the unit that wants to resolve the module named and the user can look up the digest if they care.

lpw25 commented 9 years ago

Alternatively, provide the unit that wants to resolve the module named and the user can look up the digest if they care.

This is now done. Technically it is not 100% accurate, however for it to matter two interdependent modules would need to disagree about how a unit name should be resolved (which they shouldn't since they agree on all digests).

This inaccuracy is caused by an unpleasant internal API, which is intended to be replaced when I have some time, at which point the inaccuracy will disappear.