Proposal: Extensible exceptions

Bulat Ziganshin bulat.ziganshin at gmail.com
Tue Jul 8 10:41:07 EDT 2008


Hello Ian,

Monday, July 7, 2008, 7:40:34 PM, you wrote:

> We can do that, although to actually get people to change I think we'd
> need a good helping of DEPRECATED pragmas. So in 6.10 we'd have:

>     module OldException where ... -- everything has DEPRECATED pragmas
>     module NewException where ...
>     module Exception (module OldException)
>         where import OldException

> and then in 6.12:

>     module OldException where ... -- everything has DEPRECATED pragmas
>     module Exception where ...
>     module {-# DEPRECATED "Use Exception" #-} NewException (module Exception)
>         where import Exception

great idea! for even increasing pain, of course


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Libraries mailing list