Maintainer | pommicket@gmail.com |
---|---|
Safe Haskell | Safe-Inferred |
NameGenerator
Description
- type Trigrams = Map String Int
- first2Chars :: Trigrams -> IO String
- nextChar :: Trigrams -> String -> IO Char
- generateName :: Trigrams -> IO String
Documentation
type Trigrams = Map String Int
A type that represents all the frequencies of trigrams.
Arguments
:: Trigrams | List of trigrams |
-> IO String | First 2 characters |
Get the first 2 characters of a name.
Arguments
:: Trigrams | List of trigrams |
-> String | Name so far |
-> IO Char | Next character |
Next character in a name.