We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5725faa commit f8dc7feCopy full SHA for f8dc7fe
1 file changed
src/Stack/GhcPkg.hs
@@ -146,11 +146,10 @@ unregisterGhcPkgIds pkgexe pkgDb epgids = do
146
Left e -> logWarn $ displayShow e
147
Right _ -> return ()
148
where
149
+ (idents, gids) = partitionEithers $ toList epgids
150
args = "unregister" : "--user" : "--force" :
- concatMap (either
151
- (\ident -> [packageIdentifierString ident])
152
- (\gid -> ["--ipid", ghcPkgIdString gid]))
153
- epgids
+ map packageIdentifierString idents ++
+ if null gids then [] else "--ipid" : map ghcPkgIdString gids
154
155
-- | Get the value for GHC_PACKAGE_PATH
156
mkGhcPackagePath :: Bool -> Path Abs Dir -> Path Abs Dir -> [Path Abs Dir] -> Path Abs Dir -> Text
0 commit comments