[Haskell-cafe] Made me smile
dpiponi at gmail.com
Fri May 18 21:06:18 EDT 2007
On 5/18/07, Dan Weston <westondan at imageworks.com> 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
More information about the Haskell-Cafe