Spintax-0.3.7.0: Random text generation based on spintax
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.Spintax.RandomPhrase

Synopsis

Documentation

newtype RandomPhrase Source #

Constructors

RandomPhrase 

Fields

Instances

Instances details
Show RandomPhrase Source # 
Instance details

Defined in Text.Spintax.RandomPhrase

randomPhrase :: Text -> [[Text]] -> IO (Either String RandomPhrase) Source #

Generate random passphrase or unique id

λ> randomPhrase "-" [["blacky","monk","gillespie","coltrane"],["apple","apricot","banana","coconut"],["kant","hegel","husserl","habermas"]]
 Right "coltrane-coconut-kant"