Associate ErrorCall pattern with ErrorCall type
authorHerbert Valerio Riedel <hvr@gnu.org>
Tue, 8 Dec 2015 10:09:48 +0000 (11:09 +0100)
committerHerbert Valerio Riedel <hvr@gnu.org>
Tue, 8 Dec 2015 10:09:53 +0000 (11:09 +0100)
commit9f4ca5afaccc8a397d8ee91b5423a9c2fcd151ce
tree862135235e1b09e0c9cb22164de25ba7878af8e0
parent2f6e87a494330837c425dab67ba26ee36bd9eacf
Associate ErrorCall pattern with ErrorCall type

This way,

    import Control.Exception (ErrorCall(ErrorCall))

or

    import Control.Exception (ErrorCall(..))

work as expected, and import the `ErrorCall` compatibility pattern as well.

When #5273 was implemented, it wasn't possible yet to associated
patterns with their types (see #10653).

Reviewed By: austin

Differential Revision: https://phabricator.haskell.org/D1588
libraries/base/Control/Exception.hs
libraries/base/Control/Exception/Base.hs
libraries/base/GHC/Exception.hs