snap-extras-0.3: A collection of useful helpers and utilities for Snap web applications.

Safe HaskellNone

Snap.Extras.FormUtils

Contents

Synopsis

Transformers

maybeTrans :: (Eq a, IsString a) => a -> Result v (Maybe a)Source

Transform to Nothing if field is empty string

readMayTrans :: Read a => Text -> Result v (Maybe a)Source

Maybe read into target value

readTrans :: (Read a, IsString v) => Text -> Result v aSource

Read into target value