Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- data Dictionary
- makeDictionary :: FilePath -> IO (Either ScrabbleError Dictionary)
- dictionaryFromWords :: [String] -> Dictionary
- isValidWord :: Dictionary -> String -> Bool
- invalidWords :: Dictionary -> [String] -> [String]
Documentation
data Dictionary Source #
Instances
Show Dictionary Source # | |
Defined in Wordify.Rules.Dictionary showsPrec :: Int -> Dictionary -> ShowS # show :: Dictionary -> String # showList :: [Dictionary] -> ShowS # |
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.
dictionaryFromWords :: [String] -> Dictionary Source #
isValidWord :: Dictionary -> String -> Bool Source #
invalidWords :: Dictionary -> [String] -> [String] Source #
Returns the list of words which are not present in the given dictionary from a list of input words.