| Safe Haskell | None |
|---|
Database.PostgreSQL.ORM.Validations
Documentation
newtype ValidationError Source
Constructors
| ValidationError | |
Fields
| |
type ValidationFunc a = a -> ValidationErrorSource
Arguments
| :: (a -> Bool) | |
| -> Text | Column name |
| -> Text | Error description |
| -> ValidationFunc a |
validateNotEmpty :: (a -> Text) -> Text -> Text -> ValidationFunc aSource