-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Random etymology online entry. -- -- Retrieve random etymology online entries. Library and program. @package ety @version 0.1 -- | An API for the Online Etymology Dictionary at -- http:etymonline.com/. The encoding is ISO-8859-1/latin1 so -- needs to use uconv. module Language.English.EtymologyOnline -- | An EO exception. data EOException CannotParsePageCountForLetter :: Char -> EOException CannotDownloadPageCountForLetter :: Char -> EOException CannotParsePageEntries :: Char -> Int -> (Maybe Element) -> EOException CannotDownloadPageEntries :: Char -> Int -> EOException NoEntryInPage :: Char -> Int -> EOException -- | Get a random Etymology Online entry. getRandomEntry :: IO (String, String) -- | Get the number of pages for a letter. getletterpages :: Converter -> Char -> IO Int -- | Get the entries for a letter and page number. getletterentries :: Converter -> Char -> Int -> IO [(String, String)] getentries :: Maybe Element -> Maybe [(String, String)] getlinks :: Maybe Element -> Maybe [String] paginglist :: Element -> Bool paginglinks :: Element -> [String] allContent :: Element -> String parseEOXML :: Converter -> ByteString -> Maybe Element xhtml :: Maybe String qname :: String -> Maybe String -> QName trim :: String -> String instance Typeable EOException instance Show EOException instance Exception EOException