The spata package

[ Tags: bsd3, library, web ] [ Propose Tags ]

who needs a brain when it can be solved with fists


[Skip to Readme]

Properties

Versions 2009.9.18, 2009.9.18.1, 2010.10.10
Change log changelog.md
Dependencies base (==4.*), dlist, mps (>=2009.9.18), mtl [details]
License BSD3
Author Wang, Jinjing
Maintainer Wang, Jinjing <nfjinjing@gmail.com>
Category Web
Home page http://github.com/nfjinjing/spata/tree/master
Uploaded Thu Sep 17 19:13:44 UTC 2009 by JinjingWang
Distributions NixOS:2010.10.10
Downloads 655 total (4 in the last 30 days)
Rating 0.0 (0 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for spata-2009.9.18.1

[back to package description]

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"