The spata package

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

tiny validation library

[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 Jinjing Wang
Maintainer Jinjing Wang <>
Category Web
Home page
Uploaded Sun Oct 10 04:10:29 UTC 2010 by JinjingWang
Distributions NixOS:2010.10.10
Downloads 1014 total (9 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees

Readme for spata-2010.10.10

[back to package description]


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"