Oleg Grenrus pushed to branch wip/shorter-this-module-links at Glasgow Haskell Compiler / GHC

Commits:

1 changed file:

Changes:

  • utils/haddock/haddock-api/src/Haddock/Backends/Hyperlinker/Renderer.hs
    ... ... @@ -14,7 +14,7 @@ import GHC.Iface.Ext.Types
    14 14
     import GHC.Iface.Ext.Utils (emptyNodeInfo, isEvidenceContext)
    
    15 15
     import GHC.Types.Name (Name, getOccString, isInternalName, nameModule, nameUnique)
    
    16 16
     import GHC.Types.SrcLoc
    
    17
    -import GHC.Types.Unique (getKey)
    
    17
    +import GHC.Types.Unique (showUnique)
    
    18 18
     import GHC.Unit.Module (Module, ModuleName, moduleNameString)
    
    19 19
     import GHC.Utils.Encoding (utf8DecodeByteString)
    
    20 20
     import System.FilePath.Posix ((</>))
    
    ... ... @@ -254,7 +254,7 @@ externalAnchorIdent :: Name -> String
    254 254
     externalAnchorIdent = hypSrcNameUrl
    
    255 255
     
    
    256 256
     internalAnchorIdent :: Name -> String
    
    257
    -internalAnchorIdent = ("local-" ++) . show . getKey . nameUnique
    
    257
    +internalAnchorIdent = ("l-" ++) . showUnique . nameUnique
    
    258 258
     
    
    259 259
     -- | Generate the HTML hyperlink for an identifier
    
    260 260
     hyperlink :: Module -> SrcMaps -> Identifier -> Html -> Html