genvalidity-text-0.7.0.2: GenValidity support for Text

Safe HaskellNone
LanguageHaskell2010

Data.GenValidity.Text

Contents

Synopsis

Documentation

textStartingWith :: Char -> Gen Text Source #

'textStartingWith c' generates a Text value that starts with c.

textWith :: Gen Text -> Gen Text Source #

'textStartingWith g' generates a Text value that contains a substring generated by g.

textWithA :: Char -> Gen Text Source #

'textStartingWith c' generates a Text value that contains a c.

textWithoutAny :: Char -> Gen Text Source #

'textWithoutAny c' generates a Text value that does not contain any c.

textWithoutAnyOf :: String -> Gen Text Source #

'textWithoutAnyOf c' generates a Text value that does not contain any character in ls.

textAllCaps :: Gen Text Source #

textAllCaps generates a Text value with only upper-case characters.

Orphan instances

(TypeError (Text "The GenUnchecked Data.Text.Lazy.Text is disabled:" :$$: Text "Do not instantiate GenUnchecked, instantiate GenValid instead") :: Constraint) => GenUnchecked Text Source # 
Instance details

(TypeError (Text "The GenUnchecked Data.Text.Text is disabled:" :$$: Text "Do not instantiate GenUnchecked, instantiate GenValid instead") :: Constraint) => GenUnchecked Text Source # 
Instance details

GenValid Text Source # 
Instance details

Methods

genValid :: Gen Text #

shrinkValid :: Text -> [Text] #

GenValid Text Source # 
Instance details

Methods

genValid :: Gen Text #

shrinkValid :: Text -> [Text] #