You can search for identifiers within the package.
in-package search v0.2.0
type state =
| Wait
| Stop
module type S = sig ... end
module Register (S : S) : sig ... end