Hi all,
Attached are some patches for the extensible-exceptions library, which
lets packages use the new exceptions API portably on all versions of
ghc (well, at least as far back as 6.6.1, from my tests).
To summarize: I filled out the API by copying all of the missing
functions from base4:Control.Exception, and edited the .cabal file to
make 'cabal install extensible-exceptions' do the right thing.
Also, I'm eager to have this package on hackage so that I can start
using it in my own libraries; let me know if there's anything else I
could do to work towards that goal.
Thanks,
-Judah
Sun Nov 16 09:52:02 PST 2008 Judah Jacobson
* Bump the library version to 0.1.1.0.
M ./extensible-exceptions.cabal -1 +1
Sat Nov 15 16:49:25 PST 2008 Judah Jacobson
* Copy all of the missing functionality/documentation from
base4:Control.Exception.
M ./Control/Exception/Extensible.hs -21 +358
Sat Nov 15 16:47:04 PST 2008 Judah Jacobson
* Update the package description in the .cabal file.
M ./extensible-exceptions.cabal -4 +2
Sat Nov 15 10:59:27 PST 2008 Judah Jacobson
* Hide some functions which are not possible to implement under the old API.
M ./Control/Exception/Extensible.hs -1 +1
Sat Nov 15 10:52:57 PST 2008 Judah Jacobson
* Use Cabal flags to select which version of Control.Exception to
build on top of. This ensures that cabal-install will use the correct
version of base.
M ./Control/Exception/Extensible.hs -1 +1
M ./extensible-exceptions.cabal -1 +5