-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | group strings by words in common -- -- Given a list of strings, smartGroup provides a set of functions to -- group them into smaller lists based on the most common words of the -- set. @package smartGroup @version 0.2.0 module SmartGroup class (Ord a) => Splittable a -- | Divide list into as many groups as possible groupAll :: (Ord a, Splittable s) => Int -> (a -> s) -> [a] -> [[a]] -- | Divide list into about n different groups groupNum :: (Ord a, Splittable s) => Int -> Int -> (a -> s) -> [a] -> [[a]] -- | Divide list into groups such that the amount of groups equals the log -- of the number of elements groupLog :: (Ord a, Splittable s) => Int -> (a -> s) -> [a] -> [[a]] instance (Eq s, Eq a) => Eq (SizeMap s a) instance (Show s, Show a) => Show (SizeMap s a) instance (Eq a) => Eq (StringL a) instance (Show a) => Show (StringL a) instance (Ord s, Ord a) => Ord (SizeMap s a) instance (Ord a) => Ord (StringL a) instance Splittable ByteString instance Splittable ByteString instance Splittable String