groupBy

Frederik Eaton frederik at a5.repetae.net
Tue May 1 14:45:32 EDT 2007


Hello,

My copy of the library documentation says:

    groupBy :: (a -> a -> Bool) -> [a] -> [[a]]
    The groupBy function is the non-overloaded version of group.
    User-supplied comparison (replacing an Ord context)
    The function is assumed to define a total ordering.

But group has an Eq context. I don't understand how an Ord context
would even be used, or how the function argument of groupBy is meant
to define a total ordering. Is this a typo?

Frederik

-- 
http://ofb.net/~frederik/
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs at haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs



More information about the Glasgow-haskell-bugs mailing list