package ppx_enum

  1. Overview
  2. Docs
Legend:
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) 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.

OCaml

Innovation. Community. Security.