Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype RandomPhrase = RandomPhrase {}
- randomPhrase :: Text -> [[Text]] -> IO (Either String RandomPhrase)
Documentation
newtype RandomPhrase Source #
Instances
Show RandomPhrase Source # | |
Defined in Text.Spintax.RandomPhrase showsPrec :: Int -> RandomPhrase -> ShowS # show :: RandomPhrase -> String # showList :: [RandomPhrase] -> ShowS # |
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"