package ppx_enum
-
ppx_enum._lib
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Functions to raise errors specific to [@@deriving enum]
val errorf :
loc:Ppxlib.Location.t ->
('a, unit, string, 'b) Stdlib.format4 ->
'a
Raise an error with the formatted message prefixed by "ppx_enum.enum: "
val unhandled_type_kind : loc:Ppxlib.Location.t -> string -> 'a
Use when trying to derive an enum for an unhandled type kind. The message indicates factory can only be derived from variant types without arguments.