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