 | WashNGo-2.12: WASH is a family of embedded domain specific languages (EDSL) for programming Web applications in Haskell. | Contents | Index |
|
|
|
|
| Synopsis |
|
|
|
| Documentation |
|
| class Reason a where |
| method reason of this class maps a value of type a to an explanation of
the input syntax for a value of type a
| | | Methods | | | Instances | |
|
|
| newtype EmailAddress |
| Reads an email address according to RFC 2822
| | Constructors | | Instances | |
|
|
| newtype CreditCardNumber |
| Reads a credit card number and performs Luhn check on it.
| | Constructors | | Instances | |
|
|
| data CreditCardExp |
| Reads credit card expiration dates in format .
| | Constructors | | Instances | |
|
|
| newtype NonEmpty |
| Non-empty strings.
| | Constructors | | Instances | |
|
|
| newtype Phone |
| Phone numbers.
| | Constructors | | Instances | |
|
|
| newtype AllDigits |
| Non-empty strings of digits.
| | Constructors | | Instances | |
|
|
| newtype Text |
| Arbitrary string data. No quotes required.
| | Constructors | | Instances | |
|
|
| newtype Password |
| A Password is a string of length >= 8 with characters taken from at least
three of the four sets: lower case characters, upper case characters, digits,
and special characters.
| | Constructors | | Instances | |
|
|
| data Optional a |
| Data type for transforming a field into an optional one. The Read syntax of
Absent is the empty string, whereas the Read syntax of Present a is just the
Read syntax of a. Analogously for Show.
| | Constructors | | Instances | |
|
|
| fromPresent :: Optional a -> a |
| Analogous to Maybe.fromJust
|
|
| fromOptional :: a -> Optional a -> a |
| Analogous to Maybe.fromMaybe
|
|
| Produced by Haddock version 0.8 |