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,310
Issues
4,310
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
dd89a138
Commit
dd89a138
authored
Aug 02, 2017
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comments, plus adjust debug print of TcTyThing(ATyVar)
parent
8649535c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
compiler/hsSyn/HsDecls.hs
compiler/hsSyn/HsDecls.hs
+1
-1
compiler/hsSyn/HsTypes.hs
compiler/hsSyn/HsTypes.hs
+2
-5
compiler/typecheck/TcRnTypes.hs
compiler/typecheck/TcRnTypes.hs
+1
-0
No files found.
compiler/hsSyn/HsDecls.hs
View file @
dd89a138
...
...
@@ -1330,7 +1330,7 @@ type patterns, i.e. fv(pat_tys). Note in particular
'_' gets its own unique. In this context wildcards behave just like
an ordinary type variable, only anonymous.
* The hsib_vars *includ
ing
* type variables that are already in scope
* The hsib_vars *includ
es
* type variables that are already in scope
Eg class C s t where
type F t p :: *
...
...
compiler/hsSyn/HsTypes.hs
View file @
dd89a138
...
...
@@ -280,12 +280,9 @@ isEmptyLHsQTvs _ = False
------------------------------------------------
-- HsImplicitBndrs
-- Used to quantify the
binders of a type in cases
--
when a HsForAll isn't appropriate:
-- Used to quantify the
implicit binders of a type
--
* Implicit binders of a type signature (LHsSigType/LHsSigWcType)
-- * Patterns in a type/data family instance (HsTyPats)
-- * Type of a rule binder (RuleBndr)
-- * Pattern type signatures (SigPatIn)
-- In the last of these, wildcards can happen, so we must accommodate them
-- | Haskell Implicit Binders
data
HsImplicitBndrs
pass
thing
-- See Note [HsType binders]
...
...
compiler/typecheck/TcRnTypes.hs
View file @
dd89a138
...
...
@@ -1094,6 +1094,7 @@ instance Outputable TcTyThing where -- Debugging only
<>
ppr
(
varType
(
tct_id
elt
))
<>
comma
<+>
ppr
(
tct_info
elt
))
ppr
(
ATyVar
n
tv
)
=
text
"Type variable"
<+>
quotes
(
ppr
n
)
<+>
equals
<+>
ppr
tv
<+>
dcolon
<+>
ppr
(
varType
tv
)
ppr
(
ATcTyCon
tc
)
=
text
"ATcTyCon"
<+>
ppr
tc
<+>
dcolon
<+>
ppr
(
tyConKind
tc
)
ppr
(
APromotionErr
err
)
=
text
"APromotionErr"
<+>
ppr
err
...
...
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