coq-serapi icon indicating copy to clipboard operation
coq-serapi copied to clipboard

Querying module definitions

Open dkhalansky opened this issue 5 years ago • 1 comments

Hi! Is there a way to get sexp-formatted information about modules, like the one acquired by running Print Coq.Init.Datatypes in Vernac? I failed to find a way, and running several commands like (Query () (Definition Coq.Init.Datatypes)) yielded no results.

dkhalansky avatar Apr 22 '19 20:04 dkhalansky

Sure it should be possible to do so; I will prepare a patch later this week, or you could try to give it a go, if you look at the code in serapi_protocol and the code handling Print in Coq you should be able to follow a similar path.

Indeed, thanks to recent work we should be able to output a faithful representation of a module.

ejgallego avatar Apr 22 '19 21:04 ejgallego