summaryrefslogtreecommitdiff
path: root/dev-haskell/doctest/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-haskell/doctest/files
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-haskell/doctest/files')
-rw-r--r--dev-haskell/doctest/files/doctest-0.11.0-unamb-2.patch26
-rw-r--r--dev-haskell/doctest/files/doctest-0.11.0-unamb.patch35
2 files changed, 61 insertions, 0 deletions
diff --git a/dev-haskell/doctest/files/doctest-0.11.0-unamb-2.patch b/dev-haskell/doctest/files/doctest-0.11.0-unamb-2.patch
new file mode 100644
index 000000000000..9e8de3fe994a
--- /dev/null
+++ b/dev-haskell/doctest/files/doctest-0.11.0-unamb-2.patch
@@ -0,0 +1,26 @@
+diff --git a/src/GhcUtil.hs b/src/GhcUtil.hs
+index baa9193..1792227 100644
+--- a/src/GhcUtil.hs
++++ b/src/GhcUtil.hs
+@@ -1,2 +1,3 @@
+ {-# LANGUAGE CPP #-}
++{-# LANGUAGE PackageImports #-}
+ module GhcUtil (withGhc) where
+@@ -12,3 +13,3 @@ import DynFlags (gopt_set)
+ #endif
+-import Panic (throwGhcException)
++import "ghc" Panic (throwGhcException)
+
+diff --git a/src/Run.hs b/src/Run.hs
+index fa9096f..dca590a 100644
+--- a/src/Run.hs
++++ b/src/Run.hs
+@@ -1,2 +1,3 @@
+ {-# LANGUAGE CPP #-}
++{-# LANGUAGE PackageImports #-}
+ module Run (
+@@ -23,3 +24,3 @@ import System.IO
+ import qualified Control.Exception as E
+-import Panic
++import "ghc" Panic
+
diff --git a/dev-haskell/doctest/files/doctest-0.11.0-unamb.patch b/dev-haskell/doctest/files/doctest-0.11.0-unamb.patch
new file mode 100644
index 000000000000..88c5f89fb9b0
--- /dev/null
+++ b/dev-haskell/doctest/files/doctest-0.11.0-unamb.patch
@@ -0,0 +1,35 @@
+commit c3194e5e874bf7da4d9d1db3f435e902eeb60993
+Author: Sergei Trofimovich <siarheit@google.com>
+Date: Wed Apr 13 09:35:29 2016 +0100
+
+ fix tests when config-value is present in system
+
+ ghci fails to disambiguate 'Config' in this case as:
+
+ src/Help.hs:8:18:
+ Ambiguous module name ‘Config’:
+ it was found in multiple packages:
+ config-value-0.4.0.1@confi_JzUyuyr9gPE2bcxdUwNhUS ghc-7.10.3
+
+ Fixed by explicitly importing moduls from 'ghc' package.
+
+ Signed-off-by: Sergei Trofimovich <siarheit@google.com>
+
+diff --git a/src/Help.hs b/src/Help.hs
+index b8e76cf..4c11f85 100644
+--- a/src/Help.hs
++++ b/src/Help.hs
+@@ -1,3 +1,4 @@
++{-# LANGUAGE PackageImports #-}
+ module Help (
+ usage
+ , printVersion
+@@ -5,7 +6,7 @@ module Help (
+
+ import Paths_doctest (version)
+ import Data.Version (showVersion)
+-import Config as GHC
++import "ghc" Config as GHC
+ import Interpreter (ghc)
+
+ usage :: String