-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A name generator written in Haskell -- -- Creates names using the frequencies of trigrams using Claude Shannon's -- method. @package NameGenerator @version 0.0.2 module NameGenerator -- | A type that represents all the frequencies of trigrams. type Trigrams = Map String Int -- | Get all trigrams from trigrams.txt getTrigrams :: IO Trigrams -- | Get the first 2 characters of a name. first2Chars :: Trigrams -> IO String -- | Next character in a name. nextChar :: Trigrams -> String -> IO Char -- | Generate a name. generateName :: Trigrams -> IO String