Spintax-0.1.0.0: Random text generation based on spintax

Safe HaskellNone
LanguageHaskell2010

Text.Spintax

Synopsis

Documentation

spintax :: Text -> IO (Either Text Text) Source

Generate random texts based on a spinning syntax template, with nested alternatives and empty options.

λ> spintax "{A|B|C|{a|b|c{1|2|3}|d}|D}{|, {..|etc}.}"
 Right "c2"