Add displayException to Exception typeclass trac #9822
ClosedPublic

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

Details

Summary

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

Repository
rGHC Glasgow Haskell Compiler
Lint
Automatic diff as part of commit; lint not applicable.
Unit
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/changelog.md

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

And a /Since: 4.8.0.0/ 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.