Current section

Files

Jump to
gleam_validator gen src validator@common.erl
Raw

gen/src/validator@common.erl

-module(validator@common).
-compile(no_auto_import).
-export([custom/2]).
custom(Error, Check) ->
fun(Input) -> case Check(Input) of
{some, Output} ->
{ok, Output};
none ->
{error, {Error, [Error]}}
end end.