Remove duplicates from list of lists in Haskell [closed] Like this: Data.MultiSet> [a | (a, 1) <- toOccurList (fromList [[1,1,1],[2],[1,1,1]])] [[2]]