Use addToUFM_Acc where appropriate
authorsimonpj@microsoft.com <unknown>
Fri, 4 Dec 2009 15:50:36 +0000 (15:50 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 4 Dec 2009 15:50:36 +0000 (15:50 +0000)
commit65277a1c9ff86c28c656849d6f6cbb392f1eb3e7
treec0b015ed4ede3c28b8edba97c7c5f4e8a04720a6
parenteda42a0ef66a80b2f53225b4219fa935ee78c5e9
Use addToUFM_Acc where appropriate

This way of extending a UniqFM has existed for some time, but
we weren't really using it.

addToUFM_Acc :: Uniquable key =>
      (elt -> elts -> elts) -- Add to existing
   -> (elt -> elts) -- New element
   -> UniqFM elts  -- old
   -> key -> elt  -- new
   -> UniqFM elts -- result
compiler/basicTypes/OccName.lhs
compiler/basicTypes/RdrName.lhs
compiler/basicTypes/VarEnv.lhs
compiler/rename/RnNames.lhs
compiler/simplCore/OccurAnal.lhs