Shouldn't it be laws that "show" must be injective and "read" must be surjective? Without such laws, one could define:_______________________________________________data Foo = Fooinstance Show Foo whereshow _ _ = idinstance Read Foo wherereadPrec = pfailwhich should be prevented.
Libraries mailing list
Libraries@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries