The spata package

[Tags:bsd3, library]

who needs a brain when it can be solved with fists

[Skip to Readme]


Versions 2009.9.18, 2009.9.18.1, 2010.10.10
Change log
Dependencies base (==4.*), dlist, mps (>=2009.9.18), mtl [details]
License BSD3
Author Wang, Jinjing
Maintainer Wang, Jinjing <>
Category Web
Home page
Uploaded Thu Sep 17 19:13:44 UTC 2009 by JinjingWang
Distributions NixOS:2010.10.10
Downloads 606 total (1 in the last 30 days)
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]




Maintainer's Corner

For package maintainers and hackage trustees

Readme for spata

Readme for spata-2009.9.18.1


bruteforce form validation


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"