napkin-runtime-2.0.0
Safe HaskellNone
LanguageGHC2024

Napkin.Run.Effects.Interceptors.Validate

Synopsis

Documentation

interceptValidate :: forall b (r :: EffectRow) a. Members '[Assertion :: (Type -> Type) -> Type -> Type, SqlWrite b :: (Type -> Type) -> Type -> Type] r => MetaArguments -> SpecNode -> SQLDialect -> Maybe CustomValidator -> Sem r a -> Sem r a #

Intercept a program with SqlBackend in it and apply a custom validation function.

customValidatorValidateSpecProgram :: forall {k} b (r :: EffectRow) (m :: k) a. Members '[Assertion :: (Type -> Type) -> Type -> Type, SqlWrite b :: (Type -> Type) -> Type -> Type] r => MetaArguments -> SpecNode -> SQLDialect -> Maybe CustomValidator -> SqlWrite b m a -> Sem r () #