[Haskell-cafe] why these two are not equivalent?

Iavor Diatchki iavor.diatchki at gmail.com
Mon Sep 14 00:54:37 EDT 2009


Hi,
It seems that the problem is the site is using GHC 6.6.1, and
something was broken at the time (I have not looked into what that
is).
Here are the outputs that I get for the little example on the site
that you posted:

GHC 6.10.3 and C++:





On Sun, Sep 13, 2009 at 10:15 AM, Diego Souza <dsouza at bitforest.org> wrote:
> On Sun, Sep 13, 2009 at 11:34:16AM +0200, Max Rabkin wrote:
>> That is part of the contract of toAscList (the "Asc" stands for
>> "ascending order"), but because of the way Map is implemented, the
>> result of toList is also sorted.
>
> Cool. It is good to know that toAscList and toList would produce the
> same output.
>
> However, I think the question remains open. Is this piece of haskell
> code any different (in terms of the output it produces) from the C++
> version?
>
> Thanks,
> --
> ~dsouza
> yahoo!im: paravinicius
> gpg key fingerprint: 71B8 CE21 3A6E F894 5B1B  9ECE F88E 067F E891 651E
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>


More information about the Haskell-Cafe mailing list