X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Futils%2FUniqSet.lhs;h=6d39e00e40b7f00d279b5c1d777122106f3b0c8b;hb=9aad47f1162666431deee99884c523b1ff69cf98;hp=189221111be3210103adbef912667fc808b1e5fd;hpb=4ef8fd94b806c0a5aca027ff64323a58722db9b7;p=ghc-hetmet.git diff --git a/compiler/utils/UniqSet.lhs b/compiler/utils/UniqSet.lhs index 1892211..6d39e00 100644 --- a/compiler/utils/UniqSet.lhs +++ b/compiler/utils/UniqSet.lhs @@ -121,7 +121,7 @@ isEmptyUniqSet :: UniqSet a -> Bool isEmptyUniqSet (MkUniqSet set) = isNullUFM set {-SLOW: sizeUFM set == 0-} -- | Invariant: the mapping function doesn't change the unique -mapUniqSet :: (a -> a) -> UniqSet a -> UniqSet a +mapUniqSet :: (a -> b) -> UniqSet a -> UniqSet b mapUniqSet f (MkUniqSet set) = MkUniqSet (mapUFM f set) \end{code}