Changes between Version 3 and Version 4 of ExtensibleExceptions


Ignore:
Timestamp:
Dec 18, 2005 4:29:32 AM (10 years ago)
Author:
john@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ExtensibleExceptions

    v3 v4  
    6969To 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). 
    7070 
    71 Some example code that works with GHC is here: [source:exceptions.hs prototype]. 
     71Some example code that works with GHC is here: [source:HaskellPrime/Exception.hs prototype].