[commit: ghc] master: Kill occSetElts (77ccdf3)

git at git.haskell.org git at git.haskell.org
Tue Jun 7 12:20:56 UTC 2016


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/77ccdf3b7387ed16f781a8f693dc3c9bde87f477/ghc

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

commit 77ccdf3b7387ed16f781a8f693dc3c9bde87f477
Author: Bartosz Nitka <niteria at gmail.com>
Date:   Tue Jun 7 05:23:32 2016 -0700

    Kill occSetElts
    
    It uses uniqSetToList which is nondeterministic.
    
    GHC Trac: #4012


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

77ccdf3b7387ed16f781a8f693dc3c9bde87f477
 compiler/basicTypes/OccName.hs | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/compiler/basicTypes/OccName.hs b/compiler/basicTypes/OccName.hs
index 4410bd1..19a9b3b 100644
--- a/compiler/basicTypes/OccName.hs
+++ b/compiler/basicTypes/OccName.hs
@@ -91,7 +91,7 @@ module OccName (
         -- * The 'OccSet' type
         OccSet, emptyOccSet, unitOccSet, mkOccSet, extendOccSet,
         extendOccSetList,
-        unionOccSets, unionManyOccSets, minusOccSet, elemOccSet, occSetElts,
+        unionOccSets, unionManyOccSets, minusOccSet, elemOccSet,
         isEmptyOccSet, intersectOccSet, intersectsOccSet,
         filterOccSet,
 
@@ -443,7 +443,6 @@ unionOccSets      :: OccSet -> OccSet -> OccSet
 unionManyOccSets  :: [OccSet] -> OccSet
 minusOccSet       :: OccSet -> OccSet -> OccSet
 elemOccSet        :: OccName -> OccSet -> Bool
-occSetElts        :: OccSet -> [OccName]
 isEmptyOccSet     :: OccSet -> Bool
 intersectOccSet   :: OccSet -> OccSet -> OccSet
 intersectsOccSet  :: OccSet -> OccSet -> Bool
@@ -458,7 +457,6 @@ unionOccSets      = unionUniqSets
 unionManyOccSets  = unionManyUniqSets
 minusOccSet       = minusUniqSet
 elemOccSet        = elementOfUniqSet
-occSetElts        = uniqSetToList
 isEmptyOccSet     = isEmptyUniqSet
 intersectOccSet   = intersectUniqSets
 intersectsOccSet s1 s2 = not (isEmptyOccSet (s1 `intersectOccSet` s2))



More information about the ghc-commits mailing list