[commit: ghc] master: Expose 'moduleToPkgConfAll' from 'PackageState' (e29ac2d)

git at git.haskell.org git at git.haskell.org
Wed Sep 5 12:28:05 UTC 2018


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/e29ac2db000efead4610b3ce674aa3d0060238cf/ghc

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

commit e29ac2db000efead4610b3ce674aa3d0060238cf
Author: Alec Theriault <alec.theriault at gmail.com>
Date:   Wed Sep 5 14:27:40 2018 +0200

    Expose 'moduleToPkgConfAll' from 'PackageState'
    
    Summary:
    Having direct access to this field is going to enable Haddock to
    compute in batch which modules to load before looking up instances
    of external packages.
    
    Reviewers: bgamari, monoidal
    
    Reviewed By: monoidal
    
    Subscribers: rwbarton, carter
    
    Differential Revision: https://phabricator.haskell.org/D5100


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

e29ac2db000efead4610b3ce674aa3d0060238cf
 compiler/main/Packages.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/main/Packages.hs b/compiler/main/Packages.hs
index 68940a7..04efa1f 100644
--- a/compiler/main/Packages.hs
+++ b/compiler/main/Packages.hs
@@ -7,7 +7,7 @@ module Packages (
         module PackageConfig,
 
         -- * Reading the package config, and processing cmdline args
-        PackageState(preloadPackages, explicitPackages, requirementContext),
+        PackageState(preloadPackages, explicitPackages, moduleToPkgConfAll, requirementContext),
         PackageConfigMap,
         emptyPackageState,
         initPackages,



More information about the ghc-commits mailing list