[commit: ghc] master: Add elemDVarEnv (0123efd)

git at git.haskell.org git at git.haskell.org
Fri Nov 25 11:30:33 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/0123efde8090fc60a6bfef5943ba35440cec0c69/ghc

>---------------------------------------------------------------

commit 0123efde8090fc60a6bfef5943ba35440cec0c69
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Wed Nov 23 09:05:33 2016 +0000

    Add elemDVarEnv
    
    I need this in a later patch


>---------------------------------------------------------------

0123efde8090fc60a6bfef5943ba35440cec0c69
 compiler/basicTypes/VarEnv.hs | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/compiler/basicTypes/VarEnv.hs b/compiler/basicTypes/VarEnv.hs
index 146a2fc..dcb64a9 100644
--- a/compiler/basicTypes/VarEnv.hs
+++ b/compiler/basicTypes/VarEnv.hs
@@ -32,7 +32,7 @@ module VarEnv (
         dVarEnvElts,
         extendDVarEnv, extendDVarEnv_C,
         extendDVarEnvList,
-        lookupDVarEnv,
+        lookupDVarEnv, elemDVarEnv,
         isEmptyDVarEnv, foldDVarEnv,
         mapDVarEnv,
         modifyDVarEnv,
@@ -571,6 +571,9 @@ delDVarEnvList = delListFromUDFM
 isEmptyDVarEnv :: DVarEnv a -> Bool
 isEmptyDVarEnv = isNullUDFM
 
+elemDVarEnv :: Var -> DVarEnv a -> Bool
+elemDVarEnv = elemUDFM
+
 extendDVarEnv_C :: (a -> a -> a) -> DVarEnv a -> Var -> a -> DVarEnv a
 extendDVarEnv_C = addToUDFM_C
 



More information about the ghc-commits mailing list