Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alfredo Di Napoli
GHC
Commits
b962bcc6
Commit
b962bcc6
authored
Jan 28, 2016
by
eir@cis.upenn.edu
Browse files
Make exactTyCoVarsOfTypes closed over kinds.
parent
4c6e95e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/typecheck/TcType.hs
View file @
b962bcc6
...
...
@@ -750,7 +750,7 @@ exactTyCoVarsOfType ty
=
go
ty
where
go
ty
|
Just
ty'
<-
coreView
ty
=
go
ty'
-- This is the key line
go
(
TyVarTy
tv
)
=
unitVarSet
tv
go
(
TyVarTy
tv
)
=
unitVarSet
tv
`
unionVarSet
`
go
(
tyVarKind
tv
)
go
(
TyConApp
_
tys
)
=
exactTyCoVarsOfTypes
tys
go
(
LitTy
{})
=
emptyVarSet
go
(
AppTy
fun
arg
)
=
go
fun
`
unionVarSet
`
go
arg
...
...
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