Sciweavers

HASKELL
2006
ACM

An extensible dynamically-typed hierarchy of exceptions

13 years 10 months ago
An extensible dynamically-typed hierarchy of exceptions
In this paper we address the lack of extensibility of the exception type in Haskell. We propose a lightweight solution involving the use of existential types and the Typeable class only, and show how our solution allows a fully extensible hierarchy of exception types to be declared, in which a single overloaded catch operator can be used to catch either specific exception types, or exceptions belonging to any subclass in the hierarchy. We also show how to combine the existing object-oriented framework OOHaskell with our design, such that OOHaskell objects can be thrown and caught as exceptions, with full support for implicit OOHaskell subtyping in the catch operator.
Simon Marlow
Added 13 Jun 2010
Updated 13 Jun 2010
Type Conference
Year 2006
Where HASKELL
Authors Simon Marlow
Comments (0)