On 12/10/13 20:43, Anthony Cowley wrote: > I think nub's behavior is rather set-related, so I don't really understand > the objection to putting it in Data.Set.
In sets, the order does not matter, while for nub it does. nub :: Eq a => [a] -> [a] ordNub :: Ord a => [a] -> [a] both do not mention Set, and the fact that Set is used inside my proposed ordNub implementation is a detail not visible to the caller. That's why it looks like a Data.List function to me. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe