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
Fumiaki Kinoshita
GHC
Commits
1a6bdca0
Commit
1a6bdca0
authored
Jan 10, 2017
by
Alan Zimmerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make HsIParamTy have a Located HsIPName
To simplify API Annotations. Updates haddock submodule
parent
a8a714ea
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
8 deletions
+7
-8
compiler/hsSyn/HsTypes.hs
compiler/hsSyn/HsTypes.hs
+1
-1
compiler/parser/Parser.y
compiler/parser/Parser.y
+4
-4
compiler/typecheck/TcHsType.hs
compiler/typecheck/TcHsType.hs
+1
-1
testsuite/tests/ghc-api/annotations/T10399.stdout
testsuite/tests/ghc-api/annotations/T10399.stdout
+0
-1
utils/haddock
utils/haddock
+1
-1
No files found.
compiler/hsSyn/HsTypes.hs
View file @
1a6bdca0
...
...
@@ -497,7 +497,7 @@ data HsType name
-- For details on above see note [Api annotations] in ApiAnnotation
|
HsIParamTy
HsIPName
-- (?x :: ty)
|
HsIParamTy
(
Located
HsIPName
)
-- (?x :: ty)
(
LHsType
name
)
-- Implicit parameters as they occur in contexts
-- ^
-- > (?x :: ty)
...
...
compiler/parser/Parser.y
View file @
1a6bdca0
...
...
@@ -1716,8 +1716,8 @@ ctype :: { LHsType RdrName }
>> return (sLL $1 $> $
HsQualTy { hst_ctxt = $1
, hst_body = $3 }) }
| ipvar '::' type {% ams (sLL $1 $> (HsIParamTy
(unLoc $1)
$3))
[m
j AnnVal $1,m
u AnnDcolon $2] }
| ipvar '::' type {% ams (sLL $1 $> (HsIParamTy
$1
$3))
[mu AnnDcolon $2] }
| type { $1 }
----------------------
...
...
@@ -1741,8 +1741,8 @@ ctypedoc :: { LHsType RdrName }
>> return (sLL $1 $> $
HsQualTy { hst_ctxt = $1
, hst_body = $3 }) }
| ipvar '::' type {% ams (sLL $1 $> (HsIParamTy
(unLoc $1)
$3))
[m
j AnnVal $1,m
u AnnDcolon $2] }
| ipvar '::' type {% ams (sLL $1 $> (HsIParamTy
$1
$3))
[mu AnnDcolon $2] }
| typedoc { $1 }
----------------------
...
...
compiler/typecheck/TcHsType.hs
View file @
1a6bdca0
...
...
@@ -632,7 +632,7 @@ tc_hs_type mode (HsExplicitTupleTy _ tys) exp_kind
arity
=
length
tys
--------- Constraint types
tc_hs_type
mode
(
HsIParamTy
n
ty
)
exp_kind
tc_hs_type
mode
(
HsIParamTy
(
L
_
n
)
ty
)
exp_kind
=
do
{
MASSERT
(
isTypeLevel
(
mode_level
mode
)
)
;
ty'
<-
tc_lhs_type
mode
ty
liftedTypeKind
;
let
n'
=
mkStrLitTy
$
hsIPNameFS
n
...
...
testsuite/tests/ghc-api/annotations/T10399.stdout
View file @
1a6bdca0
...
...
@@ -10,7 +10,6 @@
((Test10399.hs:10:1-35,AnnSemi), [Test10399.hs:12:1]),
((Test10399.hs:10:1-35,AnnType), [Test10399.hs:10:1-4]),
((Test10399.hs:10:12-35,AnnDcolon), [Test10399.hs:10:24-25]),
((Test10399.hs:10:12-35,AnnVal), [Test10399.hs:10:12-22]),
((Test10399.hs:12:1-66,AnnEqual), [Test10399.hs:12:8]),
((Test10399.hs:12:1-66,AnnFunId), [Test10399.hs:12:1-6]),
((Test10399.hs:12:1-66,AnnSemi), [Test10399.hs:14:1]),
...
...
haddock
@
b19ea3ab
Compare
b34497c3
...
b19ea3ab
Subproject commit b
34497c36cd01a9c8a08ec3133ec94783642e43d
Subproject commit b
19ea3ababeb231157c4a067c43003e09b1f0185
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