happy-arbitrary
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Alex.Arbitrary

Description

Random text that a regex matches.

Synopsis

Documentation

fixedString :: Regex -> Maybe String Source #

Returns the only string a regex matches, if it matches just one.

genRegex :: Regex -> Gen String Source #

Makes text that the regex matches. Repetitions are short: at most 5 times.