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

Safe HaskellNone

Validations.Tutorial

Contents

Synopsis

Documentation

validations** is a Haskell library that provides a flexible,

data User Source

Constructors

User 

Instances

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

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

digestive-functors** solves the multiple validations problem. Our formlet could look like:

validations** is based around 4 different data types. First, a *Checker* is

data Account Source

Constructors

Account 

Fields

_name :: Text
 
_accountNumber :: Text
 

Instances