10 Nov
2014
10 Nov
'14
11:19 a.m.
On 10/11/14 11:08, Andreas Abel wrote:
How about a compromise:
1. Add a new method to the Exception typeclass:
-- | Render this exception value in a human-friendly manner. Default implementation: @show@. displayException :: e -> String displayException = show
2. Add a function that can be invoked to change the default handler.
Then one can easily install a generic handler that uses displayException.
Agreed. Roman