Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex D
GHC
Commits
559a0c5d
Commit
559a0c5d
authored
Jun 18, 2017
by
Ryan Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix out-of-date comments in TyCoRep
s/tyVarsOfType/tyCoFVsOfType/g
parent
d6cecde5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
compiler/types/TyCoRep.hs
compiler/types/TyCoRep.hs
+3
-3
No files found.
compiler/types/TyCoRep.hs
View file @
559a0c5d
...
...
@@ -1352,21 +1352,21 @@ tyCoVarsOfType :: Type -> TyCoVarSet
-- See Note [Free variables of types]
tyCoVarsOfType
ty
=
fvVarSet
$
tyCoFVsOfType
ty
-- | `ty
Var
sOfType` that returns free variables of a type in a deterministic
-- | `ty
CoFV
sOfType` 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
-- | `ty
Var
sOfType` that returns free variables of a type in deterministic
-- | `ty
CoFV
sOfType` 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 `ty
VarsOfType` and `tyVar
sOfTypeList`.
-- | The worker for `ty
CoFVsOfType` and `tyCoFV
sOfTypeList`.
-- 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment