package ppx_factory

  1. Overview
  2. Docs

Module Ppx_factory_lib.RaiseSource

Functions to raise ppx errors in ppx_factory

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.

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

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

Sourcemodule Default : sig ... end

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

Sourcemodule Factory : sig ... end

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