
19 May
2007
19 May
'07
1:06 a.m.
On 5/18/07, Dan Weston
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.