Safe Haskell | None |
---|---|
Language | Haskell98 |
- data Dictionary
- isValidWord :: Dictionary -> String -> Bool
- makeDictionary :: FilePath -> IO (Either ScrabbleError Dictionary)
- invalidWords :: Dictionary -> [String] -> [String]
- dictionaryFromWords :: [String] -> Dictionary
Documentation
isValidWord :: Dictionary -> String -> Bool Source
makeDictionary :: FilePath -> IO (Either ScrabbleError Dictionary) Source
Creates a dictionary from a file containing a list of valid words, each word being seperated by a newline.
invalidWords :: Dictionary -> [String] -> [String] Source
Returns the list of words which are not present in the given dictionary from a list of input words.
dictionaryFromWords :: [String] -> Dictionary Source