SO是一场狗屎秀。感谢您的搭车。
问题不在
read
show
Foo
"Foo"
Show
instance Show Foo where show Foo = "Foo"
那么当您尝试解析格式错误的字符串时,您将得到预期的错误,因为评估