From dfb697b2d41319a6c14134edcd89da2fa49ecd99 Mon Sep 17 00:00:00 2001 From: Ɓukasz Hanuszczak Date: Wed, 22 Jul 2015 17:20:28 +0200 Subject: Fix another bug where type renamer was generating incorrect names. --- haddock-api/src/Haddock/Backends/Xhtml/Specialize.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' -- cgit v1.2.3