The spata package

[Tags: bsd3, library]

who needs a brain when it can be solved with fists


[Skip to ReadMe]

Properties

Versions2009.9.18, 2009.9.18.1, 2010.10.10
Change logchangelog.md
Dependenciesbase (==4.*), dlist, mps (>=2009.9.18), mtl [details]
LicenseBSD3
AuthorWang, Jinjing
MaintainerWang, Jinjing <nfjinjing@gmail.com>
CategoryWeb
Home pagehttp://github.com/nfjinjing/spata/tree/master
UploadedThu Sep 17 19:13:44 UTC 2009 by JinjingWang
DistributionsNixOS:2010.10.10
Downloads406 total (19 in last 30 days)
Votes
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for spata-2009.9.18.1

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"