
6 Mar
2014
6 Mar
'14
2:17 a.m.
On 03/06/2014 05:21 AM, Mateusz Kowalczyk wrote:
‘print’ is great and no one is going to abandon in because one of the 30 fields in their structure happens to be a function.
I write Pretty instances, it's much easier thanks to all the combinators, it is better suited for human consumption (some libraries have colours), and it's not confusing. Once you have good Pretty instances, you also have great logging and error messages, as opposed to some string that only makes sense to a developer. The only drawback are the orphan instances, if you really need to defined them for a type that's not yours (but you usually don't).