-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Library for classification of media files. -- -- Library for classification of media files. @package classify @version 2012.10.22 module Data.Classify.DataTypes data Element Series :: Name -> Version -> Title -> LastName -> Int -> Element name :: Element -> Name version :: Element -> Version title :: Element -> Title lastname :: Element -> LastName score :: Element -> Int type Name = String type LastName = Name type Title = String data Version Version :: Int -> Int -> Version season :: Version -> Int episode :: Version -> Int DateVersion :: Int -> Int -> Int -> Version year :: Version -> Int month :: Version -> Int day :: Version -> Int data MarkupStyle Literate :: Char -> MarkupStyle Symbol :: Char -> MarkupStyle Numeric :: Char -> Int -> MarkupStyle data MarkupLayout Replace :: Char -> String -> MarkupLayout Function :: Char -> (Int -> String) -> MarkupLayout instance Typeable Element instance Ord Version instance Eq Version instance Read Version instance Show Version instance Eq Element instance Read Element instance Show Element instance Eq MarkupStyle module Data.Classify.Parser run :: Eq a => ReadP a -> [Char] -> [a] separator :: ReadP () makeVersion :: String -> String -> Version digit :: ReadP Char oneOf :: String -> ReadP Char anyChar :: ReadP Char putback :: ReadP a -> ReadP a parseYear :: ReadP (Int, Int) getDigits :: Read b => t -> ReadP b mkDate :: MonadPlus m => Int -> Int -> Int -> t -> m (Version, t) parseDateVersion :: ReadP (Version, Int) parseVersion :: ReadP (Version, Int) trunc :: [Char] -> [Char] parseSeries :: Map [Char] Name -> ReadP Element knownExtensions :: Set [Char] removeGarbage :: [Char] -> [Char] trim :: [Char] -> [Char] parseElement :: Map [Char] Name -> ReadP Element parseMarkupElement :: ReadP MarkupStyle parseMarkup :: ReadP [MarkupStyle] generateMarkup :: String -> [MarkupStyle] module Data.Classify.Rank selectBest :: [Element] -> Element sortByRank :: [Element] -> [Element] sortByRank' :: [Element] -> [(Element, Int)] module Data.Classify.Printer ppElement :: String -> Element -> String applyMarkup :: [MarkupStyle] -> [MarkupLayout] -> String