Copyright | (c) Galois, Inc. 2007, 2008 |
---|---|
License | BSD3 |
Maintainer | diatchki@galois.com |
Stability | provisional |
Portability | |
Safe Haskell | None |
Language | Haskell98 |
- data FormFields
- fieldNames :: FormFields -> [String]
- hasField :: FormFields -> String -> Bool
- lookupString :: FormFields -> String -> Maybe String
- lookupRead :: Read a => FormFields -> String -> Maybe a
- toList :: FormFields -> [(String, String)]
- fromRequest :: Request String -> Maybe FormFields
Documentation
fieldNames :: FormFields -> [String] Source
The names of the fields that were posted.
hasField :: FormFields -> String -> Bool Source
Do we have the given field?
lookupString :: FormFields -> String -> Maybe String Source
Lookup a field value as a string.
lookupRead :: Read a => FormFields -> String -> Maybe a Source
Lookup a field value and try to parse it.
toList :: FormFields -> [(String, String)] Source
The fields as pairs of strings.
fromRequest :: Request String -> Maybe FormFields Source
Try to parse the body of a request.