[commit: ghc] wip/T15548: Find the `integer` package (either `integer-gmp` or `integer-simple`) (71cff20)

git at git.haskell.org git at git.haskell.org
Tue Aug 21 05:39:53 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/T15548
Link       : http://ghc.haskell.org/trac/ghc/changeset/71cff209728c3808b754117963645805b75af5f4/ghc

>---------------------------------------------------------------

commit 71cff209728c3808b754117963645805b75af5f4
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Mon Aug 20 16:00:15 2018 -0700

    Find the `integer` package (either `integer-gmp` or `integer-simple`)


>---------------------------------------------------------------

71cff209728c3808b754117963645805b75af5f4
 compiler/main/Packages.hs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/compiler/main/Packages.hs b/compiler/main/Packages.hs
index 71354b1..9fa5a95 100644
--- a/compiler/main/Packages.hs
+++ b/compiler/main/Packages.hs
@@ -975,6 +975,8 @@ findWiredInPackages dflags prec_map pkgs vis_map = do
   --
   let
         matches :: PackageConfig -> String -> Bool
+        pc `matches` "integer"
+            = packageNameString pc `elem` ["integer-gmp", "integer-simple"]
         pc `matches` pid = packageNameString pc == pid
 
         -- find which package corresponds to each wired-in package



More information about the ghc-commits mailing list