[Haskell-cafe] question about show
fuuzetsu at fuuzetsu.co.uk
Thu Mar 6 07:20:15 UTC 2014
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 at haskell.org
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).
More information about the Haskell-Cafe