[Haskell] Read Instances for Data.Map and Data.Set

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Thu Oct 20 10:08:41 EDT 2005


Georg Martius <mai99dgf at studserv.uni-leipzig.de> writes:

> Thanks for checking in the stuff. However, I am really sorry, but my code 
> contains a bug!
> Example: "{Foo:=-0.9,...}"
> Problem: "lex" parses ":=-" as one lexeme

One can reasonably argue that this is actually a bug in show,
not read.  It can be fixed by adding parens, or spaces, to the show.
(I'm inclined towards spaces myself.)

Regards,
    Malcolm


More information about the Libraries mailing list