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
4,311
Issues
4,311
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
382
Merge Requests
382
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
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
Glasgow Haskell Compiler
GHC
Commits
f5700001
Commit
f5700001
authored
Nov 14, 2017
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A bit more tc-tracing
parent
0a851903
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
compiler/typecheck/TcHsType.hs
compiler/typecheck/TcHsType.hs
+3
-1
compiler/typecheck/TcType.hs
compiler/typecheck/TcType.hs
+4
-1
No files found.
compiler/typecheck/TcHsType.hs
View file @
f5700001
...
...
@@ -1451,7 +1451,9 @@ kcHsTyVarBndrs name flav cusk all_kind_vars
tycon
=
mkTcTyCon
name
binders
res_kind
(
scoped_kvs
++
binderVars
binders
)
flav
;
traceTc
"kcHsTyVarBndrs: not-cusk"
(
ppr
name
<+>
ppr
binders
)
;
traceTc
"kcHsTyVarBndrs: not-cusk"
$
vcat
[
ppr
name
,
ppr
kv_ns
,
ppr
hs_tvs
,
ppr
dep_names
,
ppr
binders
,
ppr
(
mkTyConKind
binders
res_kind
)
]
;
return
(
tycon
,
stuff
)
}
where
open_fam
=
tcFlavourIsOpen
flav
...
...
compiler/typecheck/TcType.hs
View file @
f5700001
...
...
@@ -1634,7 +1634,10 @@ tcGetTyVar_maybe (TyVarTy tv) = Just tv
tcGetTyVar_maybe
_
=
Nothing
tcGetTyVar
::
String
->
Type
->
TyVar
tcGetTyVar
msg
ty
=
expectJust
msg
(
tcGetTyVar_maybe
ty
)
tcGetTyVar
msg
ty
=
case
tcGetTyVar_maybe
ty
of
Just
tv
->
tv
Nothing
->
pprPanic
msg
(
ppr
ty
)
tcIsTyVarTy
::
Type
->
Bool
tcIsTyVarTy
ty
|
Just
ty'
<-
tcView
ty
=
tcIsTyVarTy
ty'
...
...
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