package ppx_enum

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Functions to raise ppx errors in ppx_enum

The loc argument should be the loc of the problematic node within the type declaration and not the loc argument of the generator to provide the user accurate information as to which part of the type declaration can't be handled.

val errorf : loc:Ppxlib.Location.t -> ('a, unit, string, 'b) format4 -> 'a

Raise an error with the formatted message prefixed by "ppx_enum: ".

module Enum : sig ... end

Functions to raise errors specific to [@@deriving enum]

OCaml

Innovation. Community. Security.