Safe HaskellNone

IHP.ValidationSupport.Types

Documentation

data ValidatorResult Source #

Constructors

Success 
Failure !Text 

Instances

Instances details
Eq ValidatorResult Source # 
Instance details

Defined in IHP.ValidationSupport.Types

Show ValidatorResult Source # 
Instance details

Defined in IHP.ValidationSupport.Types

attachValidatorResult :: (KnownSymbol field, HasField "meta" model MetaBag, SetField "meta" model MetaBag) => Proxy field -> ValidatorResult -> model -> model Source #

attachFailure :: (KnownSymbol field, HasField "meta" model MetaBag, SetField "meta" model MetaBag) => Proxy field -> Text -> model -> model Source #

getValidationFailure :: (KnownSymbol field, HasField "meta" model MetaBag) => Proxy field -> model -> Maybe Text Source #