@@ -1211,7 +1211,7 @@ getPackageSourceHashes verbosity withRepoCtx solverPlan = do
12111211  -- 
12121212  let  allPkgLocations ::  [(PackageId , PackageLocation  (Maybe   FilePath  ))]
12131213      allPkgLocations = 
1214-         [ (( packageId pkg){pkgCompiler  =   Nothing } , srcpkgSource pkg)
1214+         [ (packageId pkg, srcpkgSource pkg)
12151215        |  SolverInstallPlan. Configured  (SolverPackage {solverPkgSource =  pkg}) <- 
12161216            SolverInstallPlan. toList solverPlan
12171217        ]
@@ -1982,7 +1982,7 @@ elaborateInstallPlan
19821982                    cid =  case  elabBuildStyle elab0 of 
19831983                      BuildInplaceOnly {} -> 
19841984                        mkComponentId $ 
1985-                           prettyShow ( pkgid{pkgCompiler  =   Nothing }) 
1985+                           prettyShow pkgid
19861986                            ++  " -inplace" 
19871987                            ++  ( case  Cabal. componentNameString cname of 
19881988                                  Nothing  ->  " " 
@@ -2215,7 +2215,7 @@ elaborateInstallPlan
22152215
22162216            pkgInstalledId
22172217              |  shouldBuildInplaceOnly pkg = 
2218-                   mkComponentId (prettyShow ( pkgid{pkgCompiler  =   Nothing })  ++  " -inplace"  )
2218+                   mkComponentId (prettyShow pkgid ++  " -inplace"  )
22192219              |  otherwise  = 
22202220                  assert (isJust elabPkgSourceHash) $ 
22212221                    hashedInstalledPackageId
@@ -2226,7 +2226,7 @@ elaborateInstallPlan
22262226
22272227            --  Need to filter out internal dependencies, because they don't
22282228            --  correspond to anything real anymore.
2229-             isExt confid =  ( confSrcId confid){pkgCompiler  =   Nothing }  /=  pkgid{pkgCompiler  =   Nothing } 
2229+             isExt confid =  confSrcId confid  /=  pkgid
22302230            filterExt =  filter  isExt
22312231
22322232            filterExt'  ::  [(ConfiguredId , a )] ->  [(ConfiguredId , a )]
@@ -2367,7 +2367,7 @@ elaborateInstallPlan
23672367                else  cp
23682368
23692369            elabPkgSourceLocation =  srcloc
2370-             elabPkgSourceHash =  case  Map. lookup  ( pkgid{pkgCompiler  =   Nothing })  sourcePackageHashes of 
2370+             elabPkgSourceHash =  case  Map. lookup  pkgid sourcePackageHashes of 
23712371              Just  h ->  Just  h
23722372              Nothing  ->  Nothing 
23732373            elabLocalToProject =  isLocalToProject pkg
0 commit comments