Add displayException to Exception typeclass trac #9822

Authored by snoyberg on Nov 21 2014, 4:57 AM.



Defaults to using show to prevent any breakage of existing code. Also
provide a custom implementation for SomeException which uses the
underlying exception's displayException.

Test Plan

Things still build, right?

Diff Detail

rGHC Glasgow Haskell Compiler
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
snoyberg updated this revision to Diff 1626.Nov 21 2014, 4:57 AM
snoyberg retitled this revision from to Add displayException to Exception typeclass trac #9822.
snoyberg updated this object.
snoyberg edited the test plan for this revision. (Show Details)
snoyberg updated the Trac tickets for this revision.

Needs entry in libraries/base/

thomie requested changes to this revision.Nov 21 2014, 7:36 AM
thomie added a reviewer: thomie.

And a /Since: haddock comment.

This revision now requires changes to proceed.Nov 21 2014, 7:36 AM
hvr accepted this revision.Nov 21 2014, 4:28 PM
hvr edited edge metadata.

I'll fixup those two minor issues while landing

This revision was automatically updated to reflect the committed changes.