spata

brainless form validation http://github.com/nfjinjing/spata

Latest on Hackage:2010.10.10

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed by Jinjing Wang
Maintained by Jinjing Wang

Spata

bruteforce form validation

Demo

put following in test.hs

import Network.Spata
import MPS.Env
import Prelude ()

inputs = [("a", "1"), ("b", "2"), ("c", "")]

main = print - guard inputs - do
  validate inclusion_of ["a", "b", "c"]
  validate presence_of ["c"]

runghc test.hs should output

Left "c can not be empty"

Changes

2009.9.18.1

Fix

  • strict mps dependency
  • exclude p / predicate by default

2009.9.18

Init

Depends on:
Used by 1 package:
comments powered byDisqus