File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import Control.Monad.State.Strict (execState)
2626import Control.Monad.Trans.Resource
2727import Data.Either
2828import Data.Function
29+ import qualified Data.HashSet as HashSet
2930import Data.List
3031import Data.List.Extra (nubOrd )
3132import Data.Map.Strict (Map )
@@ -974,6 +975,8 @@ pprintExceptions exceptions stackYaml parentMap wanted =
974975 -- Skip these when they are redundant with 'NotInBuildPlan' info.
975976 pprintException (UnknownPackage name)
976977 | name `Set.member` allNotInBuildPlan = Nothing
978+ | name `HashSet.member` wiredInPackages =
979+ Just $ " Can't build a package with same name as a wired-in-package:" <+> displayCurrentPkgName name
977980 | otherwise = Just $ " Unknown package:" <+> displayCurrentPkgName name
978981
979982 pprintFlags flags
You can’t perform that action at this time.
0 commit comments