gienah 14/03/23 15:05:13
Added: wxdirect-0.13.1.3-ghc-7.6.patch
wxdirect-0.90.1.1-ghc-7.5.patch
Log:
Bump wxdirect to 0.13.1.3 and 0.90.1.1
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key
618E971F)
Revision Changes Path
1.1 dev-haskell/wxdirect/files/wxdirect-0.13.1.3-ghc-7.6.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/wxdirect/files/wxdirect-0.13.1.3-ghc-7.6.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/wxdirect/files/wxdirect-0.13.1.3-ghc-7.6.patch?rev=1.1&content-type=text/plain
Index: wxdirect-0.13.1.3-ghc-7.6.patch
===================================================================
--- wxdirect-0.13.1.3-orig/src/ParseEiffel.hs 2012-09-30 20:02:15.000000000
+1000
+++ wxdirect-0.13.1.3/src/ParseEiffel.hs 2014-03-23 14:15:23.118131281
+1100
@@ -1,3 +1,4 @@
+{-# LANGUAGE ScopedTypeVariables #-}
-----------------------------------------------------------------------------------------
{-| Module : ParseEiffel
Copyright : (c) Daan Leijen 2003
@@ -12,6 +13,8 @@
-----------------------------------------------------------------------------------------
module ParseEiffel( parseEiffel ) where
+import Prelude hiding ( catch )
+import Control.Exception ( catch, IOException )
import Data.Char( digitToInt )
import Text.ParserCombinators.Parsec
import qualified Text.ParserCombinators.Parsec.Token as P
--- wxdirect-0.13.1.3-orig/src/Classes.hs 2012-09-30 20:02:15.000000000
+1000
+++ wxdirect-0.13.1.3/src/Classes.hs 2014-03-23 14:15:23.118131281 +1100
@@ -1,3 +1,4 @@
+{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------------------
{-| Module : Classes
Copyright : (c) Daan Leijen 2003
@@ -28,7 +29,9 @@
import Data.List( sort, sortBy )
import qualified Data.Set as Set
import qualified Data.Map as Map
+#if !MIN_VERSION_base(4,6,0)
import Prelude hiding ( catch )
+#endif
import HaskellNames( haskellTypeName, isBuiltin )
import Types
--- wxdirect-0.13.1.3-orig/src/CompileClasses.hs 2012-09-30
20:02:15.000000000 +1000
+++ wxdirect-0.13.1.3/src/CompileClasses.hs 2014-03-23 14:15:23.119131301
+1100
@@ -89,7 +89,7 @@
(exportsStatic,exportsClassClasses,classCount) = exportDefs decls
exportsClass []
methodCount = length decls
- ghcoptions = [ "{-# LANGUAGE ForeignFunctionInterface #-}"]
+ ghcoptions = [ "{-# LANGUAGE CPP, ForeignFunctionInterface #-}"]
export = concat [ ["module " ++ moduleRoot ++ moduleName
, " ( -- * Global" ]
@@ -104,6 +104,9 @@
, "import System.IO.Unsafe( unsafePerformIO )"
, "import " ++ moduleRoot ++ "WxcTypes"
, "import " ++ moduleRoot ++
moduleClassTypesName
+ , "#if (__GLASGOW_HASKELL__>=705)"
+ , "import Foreign.C.Types(CDouble(..),
CInt(..), CWchar(..))"
+ , "#endif"
, ""
]
]
1.1 dev-haskell/wxdirect/files/wxdirect-0.90.1.1-ghc-7.5.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/wxdirect/files/wxdirect-0.90.1.1-ghc-7.5.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/wxdirect/files/wxdirect-0.90.1.1-ghc-7.5.patch?rev=1.1&content-type=text/plain
Index: wxdirect-0.90.1.1-ghc-7.5.patch
===================================================================
--- wxdirect-0.90.1.1-orig/src/Classes.hs 2014-03-23 01:08:59.000000000
+1100
+++ wxdirect-0.90.1.1/src/Classes.hs 2014-03-23 15:43:57.402011540 +1100
@@ -1,3 +1,4 @@
+{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------------------
{-| Module : Classes
Copyright : (c) Daan Leijen 2003
@@ -24,6 +25,9 @@
import qualified Data.Set as Set
import qualified Data.Map as Map
+#if !MIN_VERSION_base(4,6,0)
+import Prelude hiding ( catch )
+#endif
import Text.Parsec.Prim hiding ( try )
import HaskellNames( haskellTypeName, isBuiltin )
import Types
--- wxdirect-0.90.1.1-orig/src/CompileClasses.hs 2014-03-23
01:08:59.000000000 +1100
+++ wxdirect-0.90.1.1/src/CompileClasses.hs 2014-03-23 15:42:14.123894206
+1100
@@ -96,7 +96,7 @@
(exportsStatic,exportsClassClasses,classCount) = exportDefs decls
exportsClass []
methodCount = length decls
- ghcoptions = [ "{-# LANGUAGE ForeignFunctionInterface #-}"]
+ ghcoptions = [ "{-# LANGUAGE CPP, ForeignFunctionInterface #-}"]
export = concat [ ["module " ++ moduleRoot ++ moduleName
, " ( -- * Global" ]
@@ -111,6 +111,9 @@
, "import Foreign.C.Types(CInt(..),
CWchar(..), CChar(..), CDouble(..))"
, "import " ++ moduleRoot ++ "WxcTypes"
, "import " ++ moduleRoot ++
moduleClassTypesName
+ , "#if (__GLASGOW_HASKELL__>=705)"
+ , "import Foreign.C.Types(CDouble(..),
CInt(..), CWchar(..))"
+ , "#endif"
, ""
]
]