
On 06/03/14 07:17, Simon Marechal wrote:
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). _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Which package are you using for this? I'd like to add that in some cases (GHC, Haddock, any base libraries) it is not possible to add such a dependency which means that a lot of the time you're stuck with the stock stuff (Show, IsString). -- Mateusz K.