Changes between Version 3 and Version 4 of ExtensibleExceptions
- Timestamp:
- 12/17/05 20:29:32 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ExtensibleExceptions
v3 v4 69 69 To make an existing type into one that can be thrown/caught as an exception, it is just necessary to derive Typeable and Show, and say 'instance Exception T'. (we could also allow the Exception class to be derived). 70 70 71 Some example code that works with GHC is here: [source: exceptions.hs prototype].71 Some example code that works with GHC is here: [source:HaskellPrime/Exception.hs prototype].
