forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-lang/ghc: sync 8.10.6 from ::haskell (no keywords)
Package-Manager: Portage-3.0.22, Repoman-3.0.3 Signed-off-by: Jack Todaro <[email protected]> Signed-off-by: Mark Wright <[email protected]>
- Loading branch information
1 parent
16ea985
commit c3e9bd6
Showing
3 changed files
with
838 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
dev-lang/ghc/files/ghc-8.10.5-modorigin-verbose-conflict.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- a/compiler/main/Packages.hs | ||
+++ b/compiler/main/Packages.hs | ||
@@ -219,12 +219,14 @@ fromFlag = ModOrigin Nothing [] [] True | ||
instance Semigroup ModuleOrigin where | ||
ModOrigin e res rhs f <> ModOrigin e' res' rhs' f' = | ||
ModOrigin (g e e') (res ++ res') (rhs ++ rhs') (f || f') | ||
- where g (Just b) (Just b') | ||
+ where g x@(Just b) y@(Just b') | ||
| b == b' = Just b | ||
- | otherwise = panic "ModOrigin: package both exposed/hidden" | ||
+ | otherwise = pprPanic "ModOrigin: package both exposed/hidden" $ | ||
+ text "x: " <> ppr x $$ text "y: " <> ppr y | ||
g Nothing x = x | ||
g x Nothing = x | ||
- _x <> _y = panic "ModOrigin: hidden module redefined" | ||
+ x <> y = pprPanic "ModOrigin: hidden module redefined" $ | ||
+ text "x: " <> ppr x $$ text "y: " <> ppr y | ||
|
||
instance Monoid ModuleOrigin where | ||
mempty = ModOrigin Nothing [] [] False |
Oops, something went wrong.