On 5/18/07, Dan Weston <[EMAIL PROTECTED]> wrote:
How does the type of fromList get determined? And is Data.Set.toList the same as Data.Set.toAscList?
As I import just Data.Set there is only one fromList in scope. It has type (Ord a) => [a] -> Set a so there is no ambiguity. I should have used toAscList to get a sorted list. toList gives no guarantee of the order of the resulting list but in actual fact, if you peek at the source code, they are the same function so I got away with it. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe