package ppx_factory
Module Ppx_factory_lib.UtilSource
Return the suffix to apply to a derived value name, based on the type name
Source
val core_type_from_type_decl :
loc:Ppxlib.Location.t ->
Ppxlib.type_declaration ->
Ppxlib.core_typeReturn the core type describing the type declared in the given declaration. E.g. will return [%type: 'a t] for type 'a t = A of int | B of 'a.
Return whether the deriver is used in the context of ocamldep from the given expansion context