Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gesh
GHC
Commits
cea181aa
Commit
cea181aa
authored
27 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1997-06-05 20:32:25 by sof]
Correctly add kinds on tyvars (BoxedTypeKinds instead of TypeKind)
parent
1e1de65f
Loading
Loading
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ghc/compiler/rename/ParseIface.y
+5
-9
5 additions, 9 deletions
ghc/compiler/rename/ParseIface.y
ghc/compiler/rename/ParseType.y
+2
-2
2 additions, 2 deletions
ghc/compiler/rename/ParseType.y
ghc/compiler/rename/ParseUnfolding.y
+3
-3
3 additions, 3 deletions
ghc/compiler/rename/ParseUnfolding.y
with
10 additions
and
14 deletions
ghc/compiler/rename/ParseIface.y
+
5
−
9
View file @
cea181aa
...
...
@@ -4,8 +4,6 @@ module ParseIface ( parseIface ) where
IMP_Ubiq(){-uitous-}
import CmdLineOpts ( opt_IgnoreIfacePragmas )
import HsSyn -- quite a bit of stuff
import RdrHsSyn -- oodles of synonyms
import HsDecls ( HsIdInfo(..) )
...
...
@@ -13,11 +11,9 @@ import HsTypes ( mkHsForAllTy )
import HsCore
import Literal
import BasicTypes ( Fixity(..), FixityDirection(..), NewOrData(..), Version(..) )
import HsPragmas ( noGenPragmas, noDataPragmas, noClassPragmas, noClassOpPragmas, noInstancePragmas )
import IdInfo ( exactArity, mkStrictnessInfo, mkBottomStrictnessInfo,
ArgUsageInfo, FBTypeInfo, ArityInfo, StrictnessInfo
)
import Kind ( Kind, mkArrowKind, mkTypeKind )
import HsPragmas ( noDataPragmas, noClassPragmas )
import Kind ( Kind, mkArrowKind, mkBoxedTypeKind )
import IdInfo ( ArgUsageInfo, FBTypeInfo )
import Lex
import RnMonad ( SYN_IE(ImportVersion), SYN_IE(LocalVersion), ParsedIface(..),
...
...
@@ -27,7 +23,7 @@ import Bag ( emptyBag, unitBag, snocBag )
import FiniteMap ( emptyFM, unitFM, addToFM, plusFM, bagToFM, FiniteMap )
import Name ( OccName(..), isTCOcc, Provenance, SYN_IE(Module) )
import SrcLoc ( mkIfaceSrcLoc )
import Util ( panic{-, pprPanic ToDo:rm-} )
--
import Util ( panic{-, pprPanic ToDo:rm-} )
import ParseType ( parseType )
import ParseUnfolding ( parseUnfolding )
import Maybes
...
...
@@ -426,7 +422,7 @@ kind :: { Kind }
| akind RARROW kind { mkArrowKind $1 $3 }
akind :: { Kind }
: VARSYM { mkTypeKind {- ToDo: check that it's "*" -} }
: VARSYM { mk
Boxed
TypeKind {- ToDo: check that it's "*" -} }
| OPAREN kind CPAREN { $2
--------------------------------------------------------------------------
}
...
...
This diff is collapsed.
Click to expand it.
ghc/compiler/rename/ParseType.y
+
2
−
2
View file @
cea181aa
...
...
@@ -14,7 +14,7 @@ import HsPragmas ( noGenPragmas, noDataPragmas, noClassPragmas, noClassOpPragmas
import IdInfo ( exactArity, mkStrictnessInfo, mkBottomStrictnessInfo,
ArgUsageInfo, FBTypeInfo
)
import Kind ( Kind, mkArrowKind, mkTypeKind )
import Kind ( Kind, mkArrowKind, mk
Boxed
TypeKind )
import Lex
import RnMonad ( SYN_IE(ImportVersion), SYN_IE(LocalVersion), ParsedIface(..),
...
...
@@ -123,7 +123,7 @@ kind :: { Kind }
| akind RARROW kind { mkArrowKind $1 $3 }
akind :: { Kind }
: VARSYM { mkTypeKind {- ToDo: check that it's "*" -} }
: VARSYM { mk
Boxed
TypeKind {- ToDo: check that it's "*" -} }
| OPAREN kind CPAREN { $2 }
tv_name :: { RdrName }
...
...
This diff is collapsed.
Click to expand it.
ghc/compiler/rename/ParseUnfolding.y
+
3
−
3
View file @
cea181aa
...
...
@@ -15,7 +15,7 @@ import HsPragmas ( noGenPragmas, noDataPragmas, noClassPragmas, noClassOpPragmas
import IdInfo ( exactArity, mkStrictnessInfo, mkBottomStrictnessInfo,
ArgUsageInfo, FBTypeInfo, ArityInfo, StrictnessInfo
)
import Kind ( Kind, mkArrowKind, mkTypeKind )
import Kind ( Kind, mkArrowKind, mk
Boxed
TypeKind )
import Lex
import RnMonad ( SYN_IE(ImportVersion), SYN_IE(LocalVersion), ParsedIface(..),
...
...
@@ -232,7 +232,7 @@ core_val_bndrs : { [] }
core_tv_bndr :: { UfBinder RdrName }
core_tv_bndr : tv_name DCOLON akind { UfTyBinder $1 $3 }
| tv_name { UfTyBinder $1 mkTypeKind }
| tv_name { UfTyBinder $1 mk
Boxed
TypeKind }
core_tv_bndrs :: { [UfBinder RdrName] }
core_tv_bndrs : { [] }
...
...
@@ -334,7 +334,7 @@ kind :: { Kind }
| akind RARROW kind { mkArrowKind $1 $3 }
akind :: { Kind }
: VARSYM { mkTypeKind {- ToDo: check that it's "*" -} }
: VARSYM { mk
Boxed
TypeKind {- ToDo: check that it's "*" -} }
| OPAREN kind CPAREN { $2 }
tv_name :: { RdrName }
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment