servant-ede-0.5.1: Combinators for rendering EDE templates in servant web applications

Safe HaskellSafe-Inferred
LanguageHaskell2010

Servant.EDE.Internal.Validate

Documentation

data Validated e a Source

Constructors

OK a 
NotOK e 

Instances

ok :: Applicative m => a -> ValidateT e m a Source

no :: Applicative m => e -> ValidateT e m a Source

validated :: (e -> r) -> (a -> r) -> Validated e a -> r Source

newtype ValidateT e m a Source

Constructors

VT 

Fields

runValidateT :: m (Validated e a)
 

validate :: m (Validated e a) -> ValidateT e m a Source