[Haskell-cafe] Re: Haskell and C++ program

Apfelmus, Heinrich apfelmus at quantentunnel.de
Thu Jan 15 07:40:45 EST 2009


Eugene Kirpichov wrote:
> Well, your program is not equivalent to the C++ version, since it
> doesn't bail on incorrect input.

Oops. That's because my assertion

   show . read = id

is wrong. We only have

   read . show  = id
   show . read <= id  (in the "less defined than" sense)


Regards,
H. Apfelmus



More information about the Haskell-Cafe mailing list