[commit: ghc] master: Fix out-of-date comments in TyCoRep (559a0c5)
git at git.haskell.org
git at git.haskell.org
Sun Jun 18 16:02:00 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/559a0c5d5458401f54f3680f32675a958ccb0d2b/ghc
>---------------------------------------------------------------
commit 559a0c5d5458401f54f3680f32675a958ccb0d2b
Author: Ryan Scott <ryan.gl.scott at gmail.com>
Date: Sun Jun 18 12:00:06 2017 -0400
Fix out-of-date comments in TyCoRep
s/tyVarsOfType/tyCoFVsOfType/g
>---------------------------------------------------------------
559a0c5d5458401f54f3680f32675a958ccb0d2b
compiler/types/TyCoRep.hs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/compiler/types/TyCoRep.hs b/compiler/types/TyCoRep.hs
index e6afece..fbf0a9f 100644
--- a/compiler/types/TyCoRep.hs
+++ b/compiler/types/TyCoRep.hs
@@ -1352,21 +1352,21 @@ tyCoVarsOfType :: Type -> TyCoVarSet
-- See Note [Free variables of types]
tyCoVarsOfType ty = fvVarSet $ tyCoFVsOfType ty
--- | `tyVarsOfType` that returns free variables of a type in a deterministic
+-- | `tyCoFVsOfType` that returns free variables of a type in a deterministic
-- set. For explanation of why using `VarSet` is not deterministic see
-- Note [Deterministic FV] in FV.
tyCoVarsOfTypeDSet :: Type -> DTyCoVarSet
-- See Note [Free variables of types]
tyCoVarsOfTypeDSet ty = fvDVarSet $ tyCoFVsOfType ty
--- | `tyVarsOfType` that returns free variables of a type in deterministic
+-- | `tyCoFVsOfType` that returns free variables of a type in deterministic
-- order. For explanation of why using `VarSet` is not deterministic see
-- Note [Deterministic FV] in FV.
tyCoVarsOfTypeList :: Type -> [TyCoVar]
-- See Note [Free variables of types]
tyCoVarsOfTypeList ty = fvVarList $ tyCoFVsOfType ty
--- | The worker for `tyVarsOfType` and `tyVarsOfTypeList`.
+-- | The worker for `tyCoFVsOfType` and `tyCoFVsOfTypeList`.
-- The previous implementation used `unionVarSet` which is O(n+m) and can
-- make the function quadratic.
-- It's exported, so that it can be composed with
More information about the ghc-commits
mailing list