diff options
author | Mark Wright <gienah@gentoo.org> | 2012-09-18 06:42:39 +0000 |
---|---|---|
committer | Mark Wright <gienah@gentoo.org> | 2012-09-18 06:42:39 +0000 |
commit | 421738192e53e6cad573f0706870f2019ddb58cb (patch) | |
tree | 1b05d7d7d508e4d584fe3b918f7d02e1be05ab94 /dev-haskell/c2hs/files | |
parent | Use lightweight checkout instead of export if EBZR_WORKDIR_CHECKOUT is set; b... (diff) | |
download | gentoo-2-421738192e53e6cad573f0706870f2019ddb58cb.tar.gz gentoo-2-421738192e53e6cad573f0706870f2019ddb58cb.tar.bz2 gentoo-2-421738192e53e6cad573f0706870f2019ddb58cb.zip |
patch c2hs 0.16.3 for ghc 7.6.1
(Portage version: 2.1.11.17/cvs/Linux x86_64)
Diffstat (limited to 'dev-haskell/c2hs/files')
-rw-r--r-- | dev-haskell/c2hs/files/c2hs-0.16.3-ghc-7.6.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-haskell/c2hs/files/c2hs-0.16.3-ghc-7.6.patch b/dev-haskell/c2hs/files/c2hs-0.16.3-ghc-7.6.patch new file mode 100644 index 000000000000..2b6adb2f0f6d --- /dev/null +++ b/dev-haskell/c2hs/files/c2hs-0.16.3-ghc-7.6.patch @@ -0,0 +1,45 @@ +--- c2hs-0.16.3-orig/src/C2HS/Config.hs 2011-03-25 00:04:59.000000000 +1100 ++++ c2hs-0.16.3/src/C2HS/Config.hs 2012-09-16 10:57:54.514595408 +1000 +@@ -1,3 +1,4 @@ ++{-# LANGUAGE CPP #-} + -- -*-haskell-*- + -- ** @configure_input@ ** + -- =========================================================================== +@@ -38,6 +39,10 @@ + + import Foreign (toBool) + import Foreign.C (CInt) ++#if (__GLASGOW_HASKELL__>=705) ++import Foreign.C.Types(CInt(..)) ++#endif ++ + import System.Info (arch, os) + + -- program settings +--- c2hs-0.16.3-orig/src/Control/StateTrans.hs 2011-03-25 00:04:59.000000000 +1100 ++++ c2hs-0.16.3/src/Control/StateTrans.hs 2012-09-16 10:56:52.470863551 +1000 +@@ -1,3 +1,4 @@ ++{-# LANGUAGE CPP, ScopedTypeVariables #-} + -- The HiPar Toolkit: state transformer routines + -- + -- Author : Manuel M. T. Chakravarty +@@ -73,6 +74,10 @@ + throwExc, fatal, catchExc, fatalsHandledBy) + where + ++#if !MIN_VERSION_base(4,6,0) ++import Prelude hiding (catch) ++#endif ++import Control.Exception (catch, IOException) + + -- BEWARE! You enter monad country. Read any of Wadler's or + -- Launchbury/Peyton-Jones' texts before entering. Otherwise, +@@ -296,7 +301,7 @@ + ioError err + Right _a -> return state + ) +- `catch` (\err -> let ++ `catch` (\(err :: IOException) -> let + STB handler' = handler err + in + handler' bs gs) |