Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
d2d3b719
Commit
d2d3b719
authored
Jun 12, 2012
by
Ian Lynagh
Browse files
Avoid a needless trip via SDoc when showing a Unique
parent
1c490467
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/typecheck/TcEnv.lhs
View file @
d2d3b719
...
...
@@ -78,7 +78,6 @@ import DynFlags
import SrcLoc
import BasicTypes
import Outputable
import Unique
import FastString
import ListSetOps
import Util
...
...
@@ -736,8 +735,7 @@ mkStableIdFromString :: String -> Type -> SrcSpan -> (OccName -> OccName) -> TcM
mkStableIdFromString str sig_ty loc occ_wrapper = do
uniq <- newUnique
mod <- getModule
let uniq_str = showSDoc (pprUnique uniq) :: String
occ = mkVarOcc (str ++ '_' : uniq_str) :: OccName
let occ = mkVarOcc (str ++ '_' : show uniq) :: OccName
gnm = mkExternalName uniq mod (occ_wrapper occ) loc :: Name
id = mkExportedLocalId gnm sig_ty :: Id
return id
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment