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
9969863a
Commit
9969863a
authored
May 21, 2018
by
Simon Jakobi
Committed by
Ben Gamari
May 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a less confusing type variable in a few types
parent
d14b1ec6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
compiler/hsSyn/HsImpExp.hs
compiler/hsSyn/HsImpExp.hs
+2
-2
compiler/hsSyn/HsSyn.hs
compiler/hsSyn/HsSyn.hs
+4
-4
No files found.
compiler/hsSyn/HsImpExp.hs
View file @
9969863a
...
...
@@ -41,7 +41,7 @@ One per \tr{import} declaration in a module.
-}
-- | Located Import Declaration
type
LImportDecl
name
=
Located
(
ImportDecl
name
)
type
LImportDecl
pass
=
Located
(
ImportDecl
pass
)
-- ^ When in a list this may have
--
-- - 'ApiAnnotation.AnnKeywordId' : 'ApiAnnotation.AnnSemi'
...
...
@@ -166,7 +166,7 @@ type LIEWrappedName name = Located (IEWrappedName name)
-- | Located Import or Export
type
LIE
name
=
Located
(
IE
name
)
type
LIE
pass
=
Located
(
IE
pass
)
-- ^ When in a list this may have
--
-- - 'ApiAnnotation.AnnKeywordId' : 'ApiAnnotation.AnnComma'
...
...
compiler/hsSyn/HsSyn.hs
View file @
9969863a
...
...
@@ -63,12 +63,12 @@ import Data.Data hiding ( Fixity )
-- | Haskell Module
--
-- All we actually declare here is the top-level structure for a module.
data
HsModule
name
data
HsModule
pass
=
HsModule
{
hsmodName
::
Maybe
(
Located
ModuleName
),
-- ^ @Nothing@: \"module X where\" is omitted (in which case the next
-- field is Nothing too)
hsmodExports
::
Maybe
(
Located
[
LIE
name
]),
hsmodExports
::
Maybe
(
Located
[
LIE
pass
]),
-- ^ Export list
--
-- - @Nothing@: export list omitted, so export everything
...
...
@@ -82,11 +82,11 @@ data HsModule name
-- ,'ApiAnnotation.AnnClose'
-- For details on above see note [Api annotations] in ApiAnnotation
hsmodImports
::
[
LImportDecl
name
],
hsmodImports
::
[
LImportDecl
pass
],
-- ^ We snaffle interesting stuff out of the imported interfaces early
-- on, adding that info to TyDecls/etc; so this list is often empty,
-- downstream.
hsmodDecls
::
[
LHsDecl
name
],
hsmodDecls
::
[
LHsDecl
pass
],
-- ^ Type, class, value, and interface signature decls
hsmodDeprecMessage
::
Maybe
(
Located
WarningTxt
),
-- ^ reason\/explanation for warning/deprecation of this module
...
...
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