validations-0.1.0.2: A nice way to define field validations in Haskell.

Safe HaskellSafe-Inferred
LanguageHaskell2010

Validations.Tutorial

Documentation

data User Source

Constructors

User 

Instances

notEmpty :: (Monoid a, Eq a) => a -> Either Text a Source

confirms :: Eq a => a -> a -> Either Text a Source

nonEmpty :: (Monoid a, Eq a) => Checker Text a a Source

data Account Source

Constructors

Account 

Fields

_name :: Text
 
_accountNumber :: Text
 

Instances