Auto-deriving Control.Exception.Exception

4 Jan
2009
4 Jan
'09
12:50 p.m.
If this is valid: import qualified Control.Exception as Exc genericFromException :: Typeable a => Exc.SomeException -> Maybe a genericFromException (Exc.SomeException e) = cast e instance Exc.Exception SomeType where fromException = genericFromException then why not have an auto-deriving rule for Exception (fromException = cast . unSomeException)?
5981
Age (days ago)
5981
Last active (days ago)
0 comments
1 participants
participants (1)
-
eyal.lotem@gmail.com