You can search for identifiers within the package.
in-package search v0.2.0
pvars map every pattern variable name to its arity.
pvars
type t = int * int
val compare : (int * int) Lplib.Base.cmp