checkers-0.1: Check properties on standard classes and data structures.

Test.QuickCheck.Instances.Char

Synopsis

Documentation

nonSpace :: Gen CharSource

Generates a 'non space' character, i.e. any ascii except ' ', '\t', '\n' and '\r'.

whitespace :: Gen CharSource

Generates any whitespace character, including new lines.

space :: Gen CharSource

Generates a whitespace charecter, not a newline.

newline :: Gen CharSource

Generates either a '\n' or '\r'.

lowerAlpha :: Gen CharSource

Generates any lower case alpha character.

upperAlpha :: Gen CharSource

Generates any upper case alpha character.

numeric :: Gen CharSource

Generates a digit character.

parenthesis :: Gen CharSource

Generates one or other of '(' and ')'.

bracket :: Gen CharSource

Generates one or other of '[' and ']'.

brace :: Gen CharSource

Generates one or other of '{' and '}'.

operator :: Gen CharSource

Generates one of *, /, -, +, <, >, '|' and '#'.