<div dir="auto">In the instance Show Foo, I mean "showsPrec" rather than "show".</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">2019년 6월 5일 (수) 16:45, Dannyu NDos <<a href="mailto:ndospark320@gmail.com">ndospark320@gmail.com</a>>님이 작성:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Shouldn't it be laws that "show" must be injective and "read" must be surjective? Without such laws, one could define:<div dir="auto"><br></div><div dir="auto">data Foo = Foo<br><div dir="auto">instance Show Foo where</div><div dir="auto">    show _ _ = id</div><div dir="auto">instance Read Foo where</div><div dir="auto">    readPrec = pfail</div><div dir="auto"><br></div><div dir="auto">which should be prevented.</div></div></div>
</blockquote></div>