This commit is contained in:
Joey Hess 2010-10-30 15:11:11 -04:00
parent 23da029b75
commit 128eaa7073

View file

@ -2,8 +2,13 @@
module Portability where
-- old ghc does not know about SomeException.
--
-- http://haskell.1045720.n5.nabble.com/Help-using-catch-in-6-10-td3127921.html#a3127921
--
-- This needs ghc -cpp
--
-- This would be better, but is not packaged in Debian yet.
-- http://hackage.haskell.org/package/extensible-exceptions
#if __GLASGOW_HASKELL__ < 610
type SomeException = Exception
#endif