File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Cabal-syntax/src/Distribution/Types Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import Prelude ()
1616
1717import Distribution.Backpack
1818import Distribution.Compat.Graph (IsNode (.. ))
19- import Distribution.Compiler (CompilerId , buildCompilerId )
19+ import Distribution.Compiler (CompilerId )
2020import Distribution.License
2121import Distribution.ModuleName
2222import Distribution.Package hiding (installedUnitId , pkgCompiler )
Original file line number Diff line number Diff line change @@ -32,8 +32,7 @@ import Distribution.Types.PackageId
3232
3333import Text.PrettyPrint (text )
3434
35- import GHC.Stack (HasCallStack , prettyCallStack , callStack )
36- import Data.List (isInfixOf )
35+ import GHC.Stack (HasCallStack )
3736
3837import Unsafe.Coerce (unsafeCoerce )
3938
@@ -135,7 +134,7 @@ dropPrefixFromUnitId (UnitId _c s _fromPartial) = PartialUnitId s
135134-- instead, which is supported by all versions of Cabal.
136135unUnitId :: HasCallStack => UnitId -> String
137136unUnitId (UnitId c s False ) = fromShortText c ++ ' _' : fromShortText s
138- unUnitId (UnitId c s True ) = fromShortText s
137+ unUnitId (UnitId _ s True ) = fromShortText s
139138unUnitId (PartialUnitId s) = fromShortText s
140139
141140mkUnitId :: HasCallStack => String -> UnitId
You can’t perform that action at this time.
0 commit comments