aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/Backends
diff options
context:
space:
mode:
authorƁukasz Hanuszczak <lukasz.hanuszczak@gmail.com>2015-07-22 17:20:28 +0200
committerMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>2015-08-21 18:22:31 +0100
commitdfb697b2d41319a6c14134edcd89da2fa49ecd99 (patch)
tree6095af502dbfc5ae4e12a0fd64edc2d1e19fcf0c /haddock-api/src/Haddock/Backends
parent0e3a90b9a1935a69b48dfb5906c346dd12c43ec1 (diff)
Fix another bug where type renamer was generating incorrect names.
Diffstat (limited to 'haddock-api/src/Haddock/Backends')
-rw-r--r--haddock-api/src/Haddock/Backends/Xhtml/Specialize.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/haddock-api/src/Haddock/Backends/Xhtml/Specialize.hs b/haddock-api/src/Haddock/Backends/Xhtml/Specialize.hs
index 1da089d9..47a96b34 100644
--- a/haddock-api/src/Haddock/Backends/Xhtml/Specialize.hs
+++ b/haddock-api/src/Haddock/Backends/Xhtml/Specialize.hs
@@ -292,7 +292,7 @@ freshName :: SetName name => name -> Rename name name
freshName name = do
fv <- ask
env <- get
- let taken = Set.union fv (Set.fromList . map getNameRep . Map.keys $ env)
+ let taken = Set.union fv (Set.fromList . map getNameRep . Map.elems $ env)
let name' = setInternalNameRep (findFreshName taken occ) name
put $ Map.insert nname name' env
return name'