diff options
Diffstat (limited to 'dev-haskell/regex-pcre-builtin/files')
-rw-r--r-- | dev-haskell/regex-pcre-builtin/files/regex-pcre-builtin-0.94.2.1.7.7-ghc-7.5.patch | 12 | ||||
-rw-r--r-- | dev-haskell/regex-pcre-builtin/files/regex-pcre-builtin-0.94.4.7.8.31-ghc-7.7.patch | 20 |
2 files changed, 32 insertions, 0 deletions
diff --git a/dev-haskell/regex-pcre-builtin/files/regex-pcre-builtin-0.94.2.1.7.7-ghc-7.5.patch b/dev-haskell/regex-pcre-builtin/files/regex-pcre-builtin-0.94.2.1.7.7-ghc-7.5.patch new file mode 100644 index 000000000000..f735d3d2083f --- /dev/null +++ b/dev-haskell/regex-pcre-builtin/files/regex-pcre-builtin-0.94.2.1.7.7-ghc-7.5.patch @@ -0,0 +1,12 @@ +--- regex-pcre-builtin-0.94.2.1.7.7-orig/Text/Regex/PCRE/Wrap.hsc 2009-05-21 16:44:47.000000000 +1000 ++++ regex-pcre-builtin-0.94.2.1.7.7/Text/Regex/PCRE/Wrap.hsc 2012-05-19 15:04:34.225820227 +1000 +@@ -90,6 +90,9 @@ + import Text.Regex.Base.RegexLike(RegexOptions(..),RegexMaker(..),RegexContext(..),MatchArray,MatchOffset) + #endif + ++#if (__GLASGOW_HASKELL__>=705) ++import Foreign.C.Types(CInt(..), CSize(..)) ++#endif + + -- | return version of pcre used or Nothing if pcre is not available. + getVersion :: Maybe String diff --git a/dev-haskell/regex-pcre-builtin/files/regex-pcre-builtin-0.94.4.7.8.31-ghc-7.7.patch b/dev-haskell/regex-pcre-builtin/files/regex-pcre-builtin-0.94.4.7.8.31-ghc-7.7.patch new file mode 100644 index 000000000000..384f36a93024 --- /dev/null +++ b/dev-haskell/regex-pcre-builtin/files/regex-pcre-builtin-0.94.4.7.8.31-ghc-7.7.patch @@ -0,0 +1,20 @@ +diff --git a/Text/Regex/PCRE/Wrap.hsc b/Text/Regex/PCRE/Wrap.hsc +index 26b4d39..5f4e4ca 100644 +--- a/Text/Regex/PCRE/Wrap.hsc ++++ b/Text/Regex/PCRE/Wrap.hsc +@@ -73,13 +73,13 @@ module Text.Regex.PCRE.Wrap( + import Control.Monad(when) + import Data.Array(Array,accumArray) + import Data.Bits(Bits((.|.))) -- ((.&.),(.|.),complement)) +-import Foreign(unsafePerformIO +- ,Ptr,ForeignPtr,FinalizerPtr -- ,FunPtr ++import Foreign(Ptr,ForeignPtr,FinalizerPtr -- ,FunPtr + ,alloca,allocaBytes,nullPtr + ,peek,peekElemOff + ,newForeignPtr,withForeignPtr) + import Foreign.C(CInt(..),CChar) + import Foreign.C.String(CString,CStringLen,peekCString) ++import System.IO.Unsafe (unsafePerformIO) + import Text.Regex.Base.RegexLike(RegexOptions(..),RegexMaker(..),RegexContext(..),MatchArray,MatchOffset) + #else + import Data.Array(Array) |